.footer-section {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    color: #ffffff;
    padding: 80px 0 30px;
    position: relative;
    border-top: 4px solid var(--crimson);
    font-family: 'Inter', sans-serif;
}

.footer-thread-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.footer-thread-overlay .thread-1,
.footer-thread-overlay .thread-2,
.footer-thread-overlay .thread-3 {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--crimson), var(--orchid), var(--crimson), transparent);
    opacity: 0.05; 
    height: 2px;
    width: 200%;
    
}

.footer-thread-overlay .thread-1 {
    top: 15%;
    left: -50%;
    transform: rotate(2deg);
}

.footer-thread-overlay .thread-2 {
    top: 45%;
    left: -30%;
    transform: rotate(-1deg);
}

.footer-thread-overlay .thread-3 {
    top: 75%;
    left: -70%;
    transform: rotate(3deg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1.8fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(223, 34, 41, 0.3);
    text-decoration: none;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--crimson);
    color: white;
    transform: translateY(-5px);
    border-color: var(--crimson);
    box-shadow: 0 10px 20px rgba(223, 34, 41, 0.3);
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--orchid));
    border-radius: 3px;
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links li a:hover {
    color: var(--crimson);
    transform: translateX(8px);
}

.footer-links li a::before {
    content: '›';
    position: absolute;
    left: -15px;
    top: 0;
    color: var(--crimson);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-item i {
    color: var(--crimson);
    font-size: 1.2rem;
    min-width: 25px;
    margin-top: 3px;
}

.footer-contact-item span {
    flex: 1;
}

.footer-contact-item a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-contact-item a:hover {
    color: var(--crimson);
}

.footer-thread-divider {
    position: relative;
    height: 40px;
    margin: 40px 0 20px;
    z-index: 2;
}

.footer-thread-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--crimson) 20%, var(--orchid) 50%, var(--crimson) 80%, transparent);
    transform: translateY(-50%);
}

.footer-thread-dots {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: radial-gradient(circle, var(--crimson) 2px, transparent 2px);
    background-size: 20px 4px;
    opacity: 0.15; 
    transform: translateY(-50%);
   
}

.footer-bottom {
    position: relative;
    z-index: 2;
    padding: 25px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--crimson);
}

.footer-bottom-links .separator {
    color: #444;
    font-size: 0.8rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--crimson);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(223, 34, 41, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: white;
    color: var(--crimson);
    border-color: var(--crimson);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(223, 34, 41, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }
    
    .footer-col:first-child {
        grid-column: span 2;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-section {
        padding: 60px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-col:first-child {
        grid-column: span 1;
    }
    
    .footer-title::after {
        left: 0;
        transform: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .footer-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .footer-contact-item i {
        margin-bottom: 5px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li a:hover {
        transform: translateX(0);
    }
    
    .footer-links li a::before {
        display: none;
    }
}

.footer-contact-item strong {
    color: white;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.footer-contact-item br {
    display: none;
}

.footer-contact-item div {
    line-height: 1.7;
}


.footer-links li a i {
    display: none; 
}