/* Footer Styles - Professional Design Matching Blue Navigation */
.main-footer {
    background: linear-gradient(135deg, #052D69 0%, #0a4da3 50%, #052D69 100%);
    background-size: 200% 200%;
    animation: footerGradientShift 8s ease infinite;
    color: #ffffff;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 0 5px;
    margin-top: 5px;
    overflow: hidden;
    box-shadow: 0 -4px 30px rgba(5, 45, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animated background gradient */
@keyframes footerGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer effect overlay */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%);
    animation: footerShimmer 4s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes footerShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animated glow effect */
.main-footer::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(5, 45, 105, 0.4) 0%, 
        rgba(5, 45, 105, 0.2) 30%, 
        transparent 70%);
    border-radius: 50%;
    animation: footerGlow 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

@keyframes footerGlow {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2) translate(-20px, -20px);
        opacity: 0.8;
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    animation: footerFadeIn 0.8s ease-out;
}

/* Footer fade-in animation */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
    animation: footerSectionSlide 0.6s ease-out backwards;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes footerSectionSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 50%, #ffffff 100%);
    background-size: 200% 100%;
    animation: footerTitleShine 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

@keyframes footerTitleShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.5) 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-title:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.footer-title:hover::before {
    width: 120px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.footer-title:hover::after {
    opacity: 1;
}

/* Contact Info Styles with Animations */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: contactItemFadeIn 0.5s ease-out backwards;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.3s; }
.contact-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes contactItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(255, 255, 255, 0.1);
}

.contact-item:hover::before {
    left: 100%;
}

.contact-icon {
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 0px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.contact-item:hover .contact-icon::before {
    width: 60px;
    height: 60px;
}

.contact-link-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.contact-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.5) 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contact-link:hover {
    color: #ffffff;
    transform: translateX(5px);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.contact-link:hover::after {
    width: 100%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.contact-address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.7;
    transition: all 0.4s ease;
}

.contact-item:hover .contact-address {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Social Media Styles with Enhanced Animations */
.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: socialIconFadeIn 0.6s ease-out backwards;
}

.social-icon:nth-child(1) { animation-delay: 0.2s; }
.social-icon:nth-child(2) { animation-delay: 0.3s; }
.social-icon:nth-child(3) { animation-delay: 0.4s; }
.social-icon:nth-child(4) { animation-delay: 0.5s; }

@keyframes socialIconFadeIn {
    from {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.social-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: socialIconRotate 3s linear infinite;
}

@keyframes socialIconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-10px) rotate(15deg) scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon:hover::before {
    width: 150px;
    height: 150px;
}

.social-icon:hover::after {
    opacity: 1;
}

.social-icon:hover svg {
    transform: scale(1.4) rotate(-15deg);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
}

/* Footer Bottom Styles with Animations */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    position: relative;
    padding-top: 10px;
    margin-top: 10px;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 30%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.5) 70%, 
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    animation: footerBottomGlow 3s ease-in-out infinite;
}

@keyframes footerBottomGlow {
    0%, 100% {
        opacity: 0.6;
        width: 150px;
    }
    50% {
        opacity: 1;
        width: 200px;
    }
}

.copyright {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.95) 100%);
    background-size: 200% 100%;
    animation: copyrightShine 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

@keyframes copyrightShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}



/* Footer Responsive Styles */
@media (max-width: 768px) {
    .main-footer {
        padding: 50px 0 25px;
        margin-top: 60px;
        width: 100%;
        overflow-x: hidden;
    }

    .footer-container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 35px;
        width: 100%;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 25px;
        padding-bottom: 12px;
        word-wrap: break-word;
    }

    .contact-details {
        gap: 15px;
        width: 100%;
    }

    .contact-item {
        padding: 16px 18px;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .contact-link,
    .contact-address {
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .social-icons {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    .footer-bottom {
        padding-top: 25px;
        margin-top: 25px;
        width: 100%;
    }

    .copyright {
        font-size: 13px;
        word-wrap: break-word;
        padding: 0 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-container {
        padding: 0 24px;
        width: 100%;
        max-width: 100vw;
    }

    .footer-content {
        gap: 60px;
        width: 100%;
    }

    .footer-title {
        font-size: 17px;
        margin-bottom: 35px;
        word-wrap: break-word;
    }
}

@media (min-width: 1400px) {
    .footer-container {
        padding: 0 60px;
    }

    .footer-content {
        gap: 100px;
    }
}

