/* Main Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: auto;
}

.footer-content {
    padding: 3rem 0 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Company Info Section */
.company-info .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    /* filter: brightness(0) invert(1); */
}

.footer-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ecf0f1;
    margin: 0;
}

.company-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

/* Social Media */
.social-media {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Footer Sections */
.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 10px;
}

.footer-links a::before {
    content: '▸';
    position: absolute;
    left: -15px;
    color: #3498db;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -10px;
}

/* Contact Info */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: #3498db;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-text span {
    color: #bdc3c7;
    line-height: 1.4;
}

/* Newsletter */
.newsletter-text {
    color: #bdc3c7;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: #ecf0f1;
    outline: none;
}

.newsletter-input::placeholder {
    color: #95a5a6;
}

.newsletter-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f6391);
    transform: scale(1.05);
}

.newsletter-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.newsletter-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.newsletter-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Certifications */
.certifications {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.cert-img:hover {
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    color: #95a5a6;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

.separator {
    color: #7f8c8d;
}

/* Back to Top Button */
.back-to-top {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    opacity: 1;
}

.back-to-top i {
    color: white;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-sections {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 1.5rem;
    }

    .newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .company-info {
        grid-column: span 2;
    }

    .newsletter {
        grid-column: span 2;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        order: -1;
    }
}

@media (max-width: 480px) {
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-info,
    .newsletter {
        grid-column: span 1;
    }

    .footer-content {
        padding: 2rem 0 1rem;
    }

    .social-media {
        justify-content: center;
    }

    .input-group {
        flex-direction: column;
        border-radius: 10px;
    }

    .newsletter-input {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .newsletter-btn {
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Animation for elements appearing on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }