/* Modern Footer */
.footer {
    width: 100%;
    background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
    }
    
    & > .main_container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 60px 40px;
        display: grid;
        grid-template-columns: 1.2fr 1fr 1.5fr 1.2fr;
        gap: 40px;
        position: relative;
        
        & > div {
            color: var(--text-soft);
            font-family: 'Raleway', 'Poppins', sans-serif;
            
            & > h4 {
                font-size: 1.3em;
                font-weight: 600;
                margin-bottom: 25px;
                position: relative;
                
                &::after {
                    content: '';
                    position: absolute;
                    bottom: -10px;
                    left: 0;
                    width: 40px;
                    height: 3px;
                    background: var(--gradient-primary);
                    border-radius: 2px;
                }
                
                & > b {
                    font-weight: 700;
                }
            }
        }
        
        /* Logo Section */
        & > .fo_logo {
            display: flex;
            flex-direction: column;
            gap: 20px;
            
            & > img {
                width: 180px;
                height: auto;
                object-fit: contain;
                filter: brightness(0) invert(1);
                transition: transform 0.3s ease;
                
                &:hover {
                    transform: scale(1.05);
                }
            }
            
            & > p {
                font-size: 1em;
                line-height: 1.6;
                opacity: 0.9;
                font-weight: 300;
                max-width: 250px;
            }
        }
        
        /* Quick Links Section */
        & > .fo_links {
            & > ul {
                display: flex;
                flex-direction: column;
                gap: 12px;
                
                & > a {
                    color: var(--text-soft);
                    text-decoration: none;
                    font-size: 1em;
                    transition: all 0.3s ease;
                    position: relative;
                    width: fit-content;
                    
                    &::before {
                        content: '→';
                        position: absolute;
                        left: -20px;
                        opacity: 0;
                        transition: all 0.3s ease;
                    }
                    
                    &:hover {
                        transform: translateX(20px);
                        color: var(--text-soft);
                        
                        &::before {
                            opacity: 1;
                            left: 0;
                        }
                    }
                }
            }
        }
        
        /* Certifications Section */
        & > .fo_cert {
            & > p {
                margin-bottom: 15px;
                font-size: 1em;
                line-height: 1.5;
                
                & > b {
                    font-weight: 600;
                    color: var(--primary);
                }
                
                & > span {
                    display: block;
                    font-weight: 300;
                    font-size: 0.9em;
                    opacity: 0.8;
                    margin-top: 3px;
                }
            }
        }
        
        /* Contact Section */
        & > .fo_contact {
            & > p {
                margin-bottom: 15px;
                font-size: 1em;
                line-height: 1.5;
                
                & > b {
                    font-weight: 600;
                    color: var(--primary);
                    min-width: 60px;
                    display: inline-block;
                }
                
                & > span {
                    font-weight: 300;
                    opacity: 0.9;
                }
            }
            
            & > .icons {
                display: flex;
                gap: 15px;
                margin-top: 25px;
                
                & > a {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 45px;
                    height: 45px;
                    background: rgba(255, 255, 255, 0.1);
                    border-radius: 50%;
                    transition: all 0.3s ease;
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    
                    &:hover {
                        background: var(--gradient-primary);
                        transform: translateY(-5px);
                        border-color: transparent;
                    }
                    
                    & > img {
                        width: 22px;
                        height: 22px;
                        object-fit: contain;
                        transition: transform 0.3s ease;
                    }
                }
            }
        }
    }
    
    /* Rights Section */
    & > .rights {
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        padding: 20px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        
        & > p {
            color: var(--text-soft);
            font-size: 0.95em;
            font-weight: 300;
            opacity: 0.8;
            font-family: 'Raleway', 'Poppins', sans-serif;
        }
    }
}

@media screen and (max-width: 1200px) {
    .footer > .main_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
        padding: 50px 30px;
        
        & > .fo_logo {
            grid-column: 1 / -1;
            text-align: center;
            align-items: center;
            
            & > p {
                max-width: 400px;
            }
        }
        
        & > .fo_links > ul > a {
            margin: 0 auto;
            
            &::before {
                display: none;
            }
            
            &:hover {
                transform: translateY(-3px);
            }
        }
        
        & > .fo_contact > .icons {
            justify-content: center;
        }
        
        & > div > h4 {
            text-align: center;
            
            &::after {
                left: 50%;
                transform: translateX(-50%);
            }
        }
        
        & > .fo_cert > p {
            text-align: center;
        }
        
        & > .fo_contact > p {
            text-align: center;
        }
    }
}

@media screen and (max-width: 768px) {
    .footer > .main_container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
        
        & > div {
            text-align: center;
            
            & > h4::after {
                left: 50%;
                transform: translateX(-50%);
            }
        }
        
        & > .fo_logo > img {
            width: 150px;
        }
        
        & > .fo_links > ul {
            align-items: center;
            
            & > a {
                text-align: center;
                
                &:hover {
                    transform: translateY(-3px);
                }
            }
        }
        
        & > .fo_cert > p {
            & > span {
                text-align: center;
            }
        }
        
        & > .fo_contact > .icons {
            justify-content: center;
        }
    }
}

@media screen and (max-width: 480px) {
    .footer > .main_container {
        padding: 30px 15px;
        
        & > .fo_logo > img {
            width: 120px;
        }
        
        & > .fo_contact > .icons {
            gap: 10px;
            
            & > a {
                width: 40px;
                height: 40px;
                
                & > img {
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }
    
    .footer > .rights > p {
        font-size: 0.85em;
    }
}

.footer {
    position: relative;
    
    &::after {
        content: '⚙️';
        position: absolute;
        bottom: 20px;
        right: 20px;
        font-size: 100px;
        opacity: 0.03;
        pointer-events: none;
        transform: rotate(15deg);
        z-index: 1;
    }
}