/* Modern Minimal Footer Styles */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 3rem 1.5rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.footer .container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

/* Footer Brand */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 1.25rem;
}

.footer-logo img {
    width: auto;
    height: 100%;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.03);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Footer Columns */
.footer-column {
    position: relative;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.footer-column:hover h4::after {
    width: 45px;
}

.footer-toggle {
    display: none;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.footer-toggle.active {
    transform: rotate(180deg);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.footer-links a:hover {
    color: #3b82f6;
    transform: translateX(5px);
    padding-left: 0.3rem;
}

.footer-links a i {
    font-size: 0.75rem;
    margin-right: 0.4rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
    transform: translateX(3px);
    padding-left: 0.3rem;
}

.contact-item i {
    color: #10b981;
    margin-right: 0.6rem;
    margin-top: 0.1rem;
    font-size: 0.9rem;
    min-width: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
    color: #34d399;
}

.contact-item span {
    line-height: 1.4;
    font-weight: 400;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 400;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.developer-link i {
    color: #10b981;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.developer-link:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.developer-link:hover i {
    color: #34d399;
    transform: rotate(5deg) scale(1.05);
}

.developer-link span {
    font-weight: 600;
    color: #10b981;
    transition: color 0.3s ease;
}

.developer-link:hover span {
    color: #34d399;
}

.footer-legal {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem 1.2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
    font-weight: 400;
}

.footer-legal a:hover {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer {
        padding: 2.5rem 1.25rem 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        max-width: 100%;
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr auto 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem 1rem;
    }
}

@media (max-width: 1024px) {
    .footer {
        padding: 2.25rem 1rem 0;
    }
    
    .footer-content {
        gap: 1.75rem;
    }
    
    .footer-brand {
        text-align: center;
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
        max-width: 450px;
        margin: 0 auto 1.25rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
    }
    
    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1rem 0;
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    /* Mobile Accordion Behavior */
    .footer-toggle {
        display: block;
    }
    
    .footer-column h4 {
        cursor: pointer;
        padding: 0.6rem 0;
        user-select: none;
    }
    
    .footer-links,
    .footer-contact {
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }
    
    .footer-column.active .footer-links,
    .footer-column.active .footer-contact {
        max-height: 250px;
        opacity: 1;
        padding-top: 0.4rem;
    }
    
    .footer-column.active .footer-toggle {
        transform: rotate(180deg);
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 0;
    }
    
    .developer-link {
        font-size: 0.7rem;
        padding: 0.45rem 0.7rem;
    }
      .footer-legal {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem 1.2rem;
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
        font-size: 0.75rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-social {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 1.75rem 0.5rem 0;
    }
    
    .footer-brand {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    .footer-logo {
        height: 38px;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .footer-column {
        padding: 0.8rem 0;
    }
    
    .footer-column h4 {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }
    
    .contact-item {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-item i {
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .developer-link {
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
    }
    
    .footer-legal a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0.75rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .footer-brand {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .footer-logo {
        height: 32px;
        margin-bottom: 0.8rem;
    }
    
    .footer-description {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .footer-social {
        gap: 0.6rem;
        justify-content: center;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 0.8rem;
    }
    
    .footer-column {
        padding: 0.7rem 0;
    }
    
    .footer-column h4 {
        font-size: 0.9rem;
        padding: 0.3rem 0;
        margin-bottom: 0.8rem;
    }
    
    .footer-column h4::after {
        width: 25px;
        height: 1.5px;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 0.2rem 0;
    }
    
    .footer-links a:hover {
        transform: translateX(4px);
        padding-left: 0.25rem;
    }
    
    .contact-item {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.3rem;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.15rem;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 0.8rem 0;
        gap: 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .developer-link {
        font-size: 0.6rem;
        padding: 0.35rem 0.5rem;
        gap: 0.3rem;
    }
    
    .developer-link i {
        font-size: 0.75rem;
    }
    
    .footer-legal {
        gap: 0.5rem;
    }
    
    .footer-legal a {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 1.25rem 0.3rem 0;
    }
    
    .footer-brand {
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .footer-logo {
        height: 28px;
        margin-bottom: 0.6rem;
    }
    
    .footer-description {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-social {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link i {
        font-size: 0.75rem;
    }
    
    .footer-column {
        padding: 0.6rem 0;
    }
    
    .footer-column h4 {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    .footer-links a {
        font-size: 0.7rem;
        padding: 0.15rem 0;
    }
    
    .contact-item {
        font-size: 0.65rem;
    }
    
    .contact-item i {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding: 0.7rem 0;
        gap: 0.7rem;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
    }
    
    .developer-link {
        font-size: 0.55rem;
        padding: 0.3rem 0.4rem;
    }
    
    .footer-legal a {
        font-size: 0.65rem;
    }
}
