/* Footer Styles */

/* Main Footer */
footer {
    background: rgb(22, 22, 24);
    color: #f8f9fa;
    padding: 4rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Footer Background Pattern */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

/* Main Footer Structure */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    align-items: start;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 80px;
    height: auto;
    border-radius: 12px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.footer-social a {
    text-decoration: none;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Footer Links Section */
.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.5rem;
    width: 100%;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

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

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

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    opacity: 0;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
    opacity: 1;
}

/* Footer Contact Links */
footer .contact-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

footer .contact-link:hover {
    color: var(--primary-color);
}

footer .contact-link i {
    background: var(--primary-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 0.9rem;
    color: white;
    transform: none !important;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

footer .contact-link:hover i {
    background-color: var(--secondary-color);
    transform: none !important;
    box-shadow: none !important;
}

footer .contact-link span {
    font-size: 0.95rem;
}

/* Footer Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

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

.copyright {
    font-size: 0.9rem;
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.made-with {
    font-size: 0.9rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.made-with i {
    color: #ff6b6b;
    font-size: 0.8rem;
    animation: heartbeat 1.5s infinite ease-in-out;
    animation-play-state: paused;
}

.made-with:hover i {
    animation-play-state: running;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Responsive Footer Styles */

/* Large Screens */
@media (min-width: 1200px) {
    .footer-main {
        gap: 5rem;
    }

    .footer-brand {
        max-width: 350px;
    }

    .footer-links-section {
        gap: 3rem;
    }
}

/* Medium Screens */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-brand h3 {
        margin-bottom: 0.5rem;
    }

    .footer-brand p {
        margin-bottom: 1rem;
        max-width: 600px;
    }

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

    .footer-links-section {
        width: 100%;
        gap: 2rem;
        justify-content: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .footer-links-column {
        align-items: center;
        text-align: center;
    }

    .footer-links-column h3,
    .footer-contact h3 {
        text-align: center;
        display: block;
    }

    .footer-links-column h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }

    .footer-contact .contact-methods {
        align-items: center;
    }

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

/* Small Screens */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1rem;
    }

    .footer-main {
        gap: 2.5rem;
    }

    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-logo img {
        width: 70px;
    }

    footer .contact-link {
        justify-content: center;
    }

    footer .contact-link i {
        margin-right: 8px;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

/* Extra Small Screens */
@media (max-width: 576px) {
    .footer-main {
        gap: 2.5rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links-column h3,
    .footer-contact h3 {
        font-size: 1rem;
    }

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

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-links-section {
        gap: 1.5rem;
    }
}

/* Mobile Screens */
@media (max-width: 480px) {
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links-column {
        text-align: center;
        align-items: center;
    }

    .footer-links-column h3 {
        display: inline-block;
    }

    .footer-links-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        transform: translateX(0) scale(1.05);
    }

    .footer-bottom {
        padding-top: 1.2rem;
    }

    footer .contact-link i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-right: 6px;
    }

    footer .contact-link span {
        font-size: 0.9rem;
    }

    .footer-main {
        gap: 2rem;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links-column h3,
    .footer-contact h3 {
        font-size: 0.95rem;
    }

    .footer-links a,
    .copyright,
    .made-with {
        font-size: 0.85rem;
    }

    footer .contact-link {
        padding: 0.4rem 0;
    }

    footer .contact-link i {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        margin-right: 5px;
    }

    footer .contact-link span {
        font-size: 0.85rem;
    }

    .footer-main {
        gap: 1.5rem;
    }
}