/**
 * Footer Styles
 * Modern, Professional Footer Design
 */

/* Root Variables */
:root {
    --footer-bg: #1a1a2e;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-text: #e0e0e0;
    --footer-text-muted: #a0a0a0;
    --footer-hover: #0f3460;
    --footer-link-color: #00d4ff;
    --footer-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Main Footer */
.at-site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--footer-text);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.at-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="%23000" width="60" height="60"/><circle cx="30" cy="30" r="20" fill="none" stroke="%23fff" stroke-width="0.5" opacity="0.05"/></svg>');
    pointer-events: none;
    opacity: 0.03;
}

.footer-main-content,
.footer-bottom-bar {
    position: relative;
    z-index: 1;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-link-color) 0%, rgba(0, 212, 255, 0.3) 100%);
    border-radius: 2px;
}

/* Footer Logo */
.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Footer About Section */
.footer-description {
    line-height: 1.6;
    font-size: 0.875rem;
}

.footer-tagline {
    color: var(--footer-link-color);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* Footer Links */
.footer-navigation .list-unstyled {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-navigation a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    position: relative;
    transition: var(--footer-transition);
    display: inline-block;
}

.footer-navigation a::before {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--footer-link-color);
    transition: width 0.3s ease;
}

.footer-navigation a:hover {
    color: var(--footer-link-color);
    padding-left: 10px;
}

.footer-navigation a:hover::before {
    width: calc(100% - 10px);
}

/* Contact Info */
.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    transition: var(--footer-transition);
}

.footer-contact-item:hover {
    padding-left: 8px;
}

.footer-contact-item i {
    font-size: 1rem;
    color: var(--footer-link-color);
    margin-top: 2px;
}

.footer-contact-item a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--footer-link-color);
}

.footer-contact-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Gallery Grid */
.footer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.footer-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1);
}

.footer-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

.footer-gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 255, 0);
    transition: background 0.3s ease;
}

.footer-gallery-item:hover::after {
    background: rgba(0, 212, 255, 0.1);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background: rgba(0, 0, 0, 0.3);
    border-top-color: var(--footer-border) !important;
}

.footer-copyright {
    font-size: 0.85rem;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    color: var(--footer-link-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--footer-transition);
    border: 1.5px solid rgba(0, 212, 255, 0.3);
}

.footer-social-link:hover {
    background: var(--footer-link-color);
    color: #1a1a2e;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 212, 255, 0.2);
}

/* Text Color Utilities */
.text-muted {
    color: var(--footer-text-muted) !important;
}

/* Link Hover Effect */
.link-hover {
    position: relative;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-link-color);
    transition: width 0.3s ease;
}

.link-hover:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-main-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer-title {
        margin-bottom: 15px !important;
    }

    .footer-section {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .footer-title {
        font-size: 0.88rem;
    }

    .footer-title::after {
        width: 25px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-bottom-bar .row {
        flex-direction: column-reverse;
    }

    .footer-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .footer-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .at-site-footer {
        font-size: 0.9rem;
    }

    .footer-main-content {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-title {
        font-size: 0.8rem;
        margin-bottom: 12px !important;
        padding-bottom: 8px;
    }

    .footer-title::after {
        width: 20px;
        height: 2px;
    }

    .footer-logo img {
        max-height: 50px;
    }

    .footer-navigation a {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .footer-contact-item {
        gap: 10px;
        padding: 6px 0;
    }

    .footer-contact-item i {
        font-size: 0.9rem;
    }

    .footer-contact-item p,
    .footer-contact-item a {
        font-size: 0.8rem;
    }

    .footer-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .footer-bottom-bar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .at-site-footer {
        background: linear-gradient(135deg, #0f0f1e 0%, #1a1a3e 100%);
    }

    .footer-text-muted {
        color: #999;
    }
}

/* Animation Classes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: slideInUp 0.6s ease-out;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.4s;
}

/* Bootstrap Icons Compatibility */
.bi {
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

.bi-facebook::before,
.bi-instagram::before,
.bi-youtube::before,
.bi-twitter-x::before,
.bi-linkedin::before,
.bi-geo-alt::before,
.bi-telephone::before,
.bi-envelope::before,
.bi-clock::before {
    font-family: 'Bootstrap Icons' !important;
}

/* Accessibility */
.footer-social-link:focus {
    outline: 2px solid var(--footer-link-color);
    outline-offset: 2px;
}

.footer-navigation a:focus {
    outline: 2px solid var(--footer-link-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .at-site-footer {
        background: #fff;
        color: #000;
    }

    .footer-social-link {
        display: none;
    }
}
