/* ===== Enhanced Footer with Layered Background ===== */
footer {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.98), rgba(20, 20, 20, 0.98));
    overflow: hidden;
    padding: 10px 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 217, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 140, 66, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 25%,
            var(--secondary) 50%,
            var(--primary) 75%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    z-index: 1;
}

footer>* {
    position: relative;
    z-index: 2;
}

/* ===== Enhanced Footer Styling ===== */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 80px;
    margin-bottom: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Social Icons */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links li a::before {
    content: '→';
    margin-right: 8px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

.footer-contact li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact li a:hover {
    color: var(--secondary);
}

/* Footer Tech Tags */
.footer-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-tech-tags span {
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-tech-tags span:nth-child(even) {
    background: rgba(0, 217, 163, 0.1);
    border-color: rgba(0, 217, 163, 0.3);
    color: var(--secondary);
}

.footer-tech-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 15px;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    /* Reset margins for better flex alignment */
}

/* Smart Footer Features */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 15px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 217, 163, 0.7);
    }

    70% {
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(0, 217, 163, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 217, 163, 0);
    }
}

.branding-column .footer-logo {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Newsletter */
.newsletter-column .footer-text-sm {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-form .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-form input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: var(--font-body);
}

.footer-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.footer-form button {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.footer-form button:hover {
    transform: scale(1.05);
}

/* Footer Bottom Legal */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--primary);
}

.separator {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    .footer-heading {
        font-size: 1.1rem;
    }

    .footer-social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

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