/* Professional Footer Section - Premium Blue Design with Grid Background */
.footer-section {
    position: relative;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f3a 25%, #2a2f5a 50%, #1a1f3a 75%, #0a0f1c 100%);
    padding: 80px 0 0;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

/* Grid Background */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    opacity: 0.6;
}

/* Radial Gradient Overlay */
.footer-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer-section .container {
    position: relative;
    z-index: 2;
}

/* Main Footer Content with Glassmorphism */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

/* Footer Brand */
.footer-brand {
    max-width: 400px;
    padding: 35px;
    background: rgba(30, 58, 138, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 12px 40px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-brand:hover {
    background: rgba(30, 58, 138, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 16px 50px rgba(15, 23, 42, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo-img {
    width: 48px;
    height: auto;
    margin-right: 12px;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.footer-brand-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.footer-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: #bfdbfe; /* Lighter blue for better contrast */
    line-height: 1.6;
    margin-bottom: 32px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Social Links with Premium Styling */
.footer-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(30, 58, 138, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(30, 58, 138, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Footer Links Grid with Visual Cards */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.footer-column {
    min-width: 0; /* Prevent grid overflow */
    padding: 25px;
    background: rgba(30, 58, 138, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 
        0 8px 30px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-column:hover {
    background: rgba(30, 58, 138, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-column-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #bfdbfe;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
}

.footer-link:hover {
    color: #60a5fa;
    transform: translateX(4px);
}

.footer-link:hover::before {
    width: 100%;
}

/* Footer Bottom with Grid Background */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    background: rgba(15, 23, 42, 0.3);
    margin: 0 -20px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 12px 12px 0 0;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

/* Grid Background for Footer Bottom */
.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    border-radius: 12px 12px 0 0;
}

.footer-copyright {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #bfdbfe;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-copyright::before {
    content: '©';
    font-weight: 600;
    color: #3b82f6;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #bfdbfe;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.legal-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Visual Decorative Elements */
.footer-decorative-element {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.footer-circle-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.1) 50%, transparent 70%);
    top: 10%;
    right: 5%;
    opacity: 0.7;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 8px 30px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-circle-2 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(30, 64, 175, 0.08) 50%, transparent 70%);
    bottom: 15%;
    left: 8%;
    opacity: 0.6;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 8px 30px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    width: 60%;
    top: 30%;
    left: 20%;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .footer-section {
        padding: 70px 0 0;
    }
    
    .footer-main {
        gap: 50px;
        margin-bottom: 50px;
        padding-bottom: 50px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-brand, 
    .footer-column {
        padding: 25px;
    }
}

@media (max-width: 991px) {
    .footer-section {
        padding: 60px 0 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
        padding-bottom: 40px;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .footer-section {
        padding: 50px 0 0;
    }
    
    .footer-section .container {
        padding: 0 15px;
    }
    
    .footer-main {
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        padding: 25px 15px;
        margin: 0 -15px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .footer-brand, 
    .footer-column {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .footer-section {
        padding: 40px 0 0;
    }
    
    .footer-logo-img {
        width: 40px;
    }
    
    .footer-brand-text {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-column-title {
        font-size: 1rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-copyright,
    .legal-link {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 20px 10px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .footer-section {
        padding: 100px 0 0;
    }
    
    .footer-main {
        gap: 80px;
        margin-bottom: 80px;
        padding-bottom: 80px;
    }
    
    .footer-brand {
        max-width: 450px;
        padding: 40px;
    }
    
    .footer-column {
        padding: 30px;
    }
    
    .footer-logo-img {
        width: 56px;
        margin-right: 16px;
    }
    
    .footer-brand-text {
        font-size: 2rem;
    }
    
    .footer-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .footer-links {
        gap: 30px;
    }
    
    .footer-column-title {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }
    
    .footer-link {
        font-size: 1rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    .footer-bottom {
        padding: 40px 60px;
    }
    
    .footer-copyright {
        font-size: 1rem;
    }
    
    .legal-link {
        font-size: 0.95rem;
    }
}

/* Animation on scroll */
.footer-main {
    opacity: 0;
    transform: translateY(30px);
    animation: footerFadeIn 0.8s ease forwards;
}

@keyframes footerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    opacity: 0;
    transform: translateY(20px);
    animation: footerColumnFadeIn 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }

@keyframes footerColumnFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    animation: socialFadeIn 0.5s ease forwards;
}

.social-link:nth-child(1) { animation-delay: 0.5s; }
.social-link:nth-child(2) { animation-delay: 0.6s; }
.social-link:nth-child(3) { animation-delay: 0.7s; }
.social-link:nth-child(4) { animation-delay: 0.8s; }
.social-link:nth-child(5) { animation-delay: 0.9s; }

@keyframes socialFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Accessibility */
.footer-link:focus-visible,
.social-link:focus-visible,
.legal-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-main,
    .footer-column,
    .social-link {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .footer-logo:hover,
    .social-link:hover,
    .footer-link:hover {
        transform: none;
    }
    
    .footer-section::before,
    .footer-section::after,
    .footer-bottom::before {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer-section {
        border-top-width: 2px;
        border-top-color: rgba(255, 255, 255, 0.4);
    }
    
    .social-link {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .social-link:hover {
        border-color: #3b82f6;
    }
    
    .footer-bottom {
        border-top: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .footer-brand,
    .footer-column {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Print styles */
@media print {
    .footer-section {
        background: white !important;
        color: black !important;
        padding: 30px 0 !important;
    }
    
    .footer-brand-text {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
    
    .footer-description,
    .footer-link,
    .footer-copyright,
    .legal-link {
        color: black !important;
    }
    
    .social-link {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-section::before,
    .footer-section::after,
    .footer-bottom::before {
        display: none;
    }
}