/* =====================
   Footer Styles
   ===================== */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--light);
    padding: 2.5rem 0 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-sans);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    align-items: start;
}

.footer-section {
    margin-bottom: 1.5rem;
    grid-column: auto / span 1;
}

.footer-section:first-child {
    grid-column: 1 / 2;
    grid-row: 1;
    padding-right: 2rem;
}

.footer-section:not(:first-child) {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0;
    grid-row: 1;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Company Description Styles */
.company-description {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
}

.company-description:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.08);
}

.company-description h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-light), var(--white));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.company-description .tagline {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.company-description .divider {
    height: 2px;
    width: 40px;
    background: var(--accent);
    margin: 0.75rem 0 1rem;
    border-radius: 2px;
}

.company-description .description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--light);
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6em;
}

.company-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #a5b4fc;
    transition: all 0.3s ease;
}

.meta-item i {
    color: #8b5cf6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.meta-item:hover {
    color: #ffffff;
}

.meta-item:hover i {
    transform: scale(1.2);
    color: #4f46e5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    font-weight: 400;
    opacity: 0.9;
    padding: 0.25rem 0;
    font-family: var(--font-sans);
}

.footer-section a i {
    width: 16px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-section a:hover i {
    opacity: 1;
    transform: translateX(2px);
}

.footer-section a:hover {
    color: #ffffff;
    opacity: 1;
    transform: translateX(3px);
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
    border-radius: 1px;
}

.footer-section a:hover::after {
    width: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.social-links::before {
    content: 'Follow Us';
    position: absolute;
    top: -10px;
    left: 0;
    background: #0f172a;
    padding: 0 10px;
    font-size: 0.8rem;
    color: #a5b4fc;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(165, 180, 252, 0.1);
    color: #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(165, 180, 252, 0.15);
    position: relative;
    overflow: hidden;
    font-size: 0.9em;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
    border-color: rgba(165, 180, 252, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.1);
}

/* Social brand colors on hover */
.social-links a[aria-label*="Facebook"]:hover {
    background: rgba(59, 89, 152, 0.9) !important;
}

.social-links a[aria-label*="Twitter"]:hover {
    background: rgba(29, 161, 242, 0.9) !important;
}

.social-links a[aria-label*="LinkedIn"]:hover {
    background: rgba(0, 119, 181, 0.9) !important;
}

/* Footer bottom */
.footer-bottom {
    background: rgba(15, 23, 42, 0.7);
    padding: 1.25rem 0;
    text-align: center;
    margin-top: 2rem;
    position: relative;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

.footer-bottom a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
}

.footer-bottom .footer-link {
    display: inline-block;
    margin: 0 0.25rem;
}

.footer-bottom .footer-link.active {
    color: #ffffff;
    font-weight: 600;
}

.footer-bottom .footer-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    border-radius: 2px;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.footer-bottom .footer-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-bottom .footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.divider {
    margin: 0 0.5rem;
    color: #475569;
}

/* Contact info icons */
.fa-envelope,
.fa-phone,
.fa-map-marker-alt {
    width: 20px;
    margin-right: 10px;
    color: #4f46e5;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .company-description {
        grid-column: 1 / -1;
    }
    
    @media (max-width: 576px) {
        .footer-content {
            grid-template-columns: 1fr;
        }
        
        .footer-section {
            grid-column: 1 / -1 !important;
        }
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .company-description {
        padding: 1.25rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul {
        display: inline-block;
        text-align: left;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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