/* Footer Styles */
.main-footer {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-family);
    padding: 3rem var(--page-margin);
    margin-top: 4rem;
    position: relative;
}

/* Dark overlay for better text readability */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.9));
    z-index: 0;
}

.main-footer > * {
    position: relative;
    z-index: 1;
}

/* Footer content grid - Two columns for larger screens */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Copyright text - always full width below the grid */
.footer-copyright {
    text-align: center;
    width: 100%;
    margin: 0;
    line-height: 1.6;
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.7);
}

/* Contact item styles */
.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: all var(--scroll-transition) ease;
}

.contact-item:hover .contact-icon {
    background: var(--secondary);
    transform: translateY(-3px);
}

.contact-details h4 {
    color: white;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.contact-details p {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Social details styles */
.social-details h4 {
    color: white;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.social-details p {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Social links styles */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--scroll-transition) ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Specific social network colors on hover */
.social-link:nth-child(1):hover { background: #E4405F; } /* Instagram */
.social-link:nth-child(2):hover { background: #0088cc; } /* Telegram */
.social-link:nth-child(3):hover { background: #25D366; } /* WhatsApp */
.social-link:nth-child(4):hover { background: #0A66C2; } /* LinkedIn */

/* Responsive Design */
@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 5%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-details p,
    .social-details p {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 1.5rem 5%;
    }
    
    .footer-copyright p:first-child {
        font-size: 1rem;
    }
    
    .contact-details h4,
    .social-details h4 {
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Animation for footer entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-footer {
    animation: fadeInUp 0.8s ease-out;
}