.footer {
    position: relative;
    z-index: 1;
    padding: 60px 20px 40px;
    background: #13131e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .footer {
        padding: 80px 40px 50px;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 60px;
    }
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 300px;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    flex: 1;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .footer-links {
        grid-template-columns: repeat(5, 1fr);
        gap: 32px;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #a78bfa;
}

/* Footer Dropdown Styles */
.footer-column-dropdown {
    position: relative;
}

.footer-column-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    gap: 8px;
}

.footer-column-toggle .footer-column-title {
    margin: 0;
}

.footer-column-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.footer-column-dropdown .footer-column-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.footer-column-dropdown.is-expanded .footer-column-links {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
    margin-top: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar styling for dropdown links */
.footer-column-dropdown.is-expanded .footer-column-links::-webkit-scrollbar {
    width: 6px;
}

.footer-column-dropdown.is-expanded .footer-column-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.footer-column-dropdown.is-expanded .footer-column-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.footer-column-dropdown.is-expanded .footer-column-links::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.footer-column-dropdown.is-expanded .footer-column-icon {
    transform: rotate(180deg);
    color: #a78bfa;
}

.footer-column-toggle:hover .footer-column-icon {
    color: #a78bfa;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.footer-legal-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

