/* Footer Section Styles */

footer {
    background: var(--secondary-color);
    margin-top: 4rem;
    border-radius: 15px;
}

.footer-wrapper {
    background: linear-gradient(170deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.footer-quote {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-quote p {
    font-style: italic;
    color: var(--accent-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer-quote p::before,
.footer-quote p::after {
    content: '"';
    position: absolute;
    color: var(--accent-color);
    font-size: 3rem;
    opacity: 0.15;
    font-family: serif;
}

.footer-quote p::before {
    left: -0.5rem;
    top: -1rem;
}

.footer-quote p::after {
    right: -0.5rem;
    bottom: -1rem;
}

.footer-content {
    width: 100%;
    max-width: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 0;
}

.footer-content-inner {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.footer-brand {
    padding-right: 1.5rem;
}

.footer-logo {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
    transition: all var(--transition-speed) ease;
}

.footer-logo::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.5;
    transition: width 0.3s ease;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links a,
.footer-connect a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    transform: translateX(0);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

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

.footer-connect .social-icons {
    display: flex;
    gap: 1.2rem;
}

.footer-connect .social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.footer-connect .social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.1;
}

.footer-content-inner h3 {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-content-inner h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    z-index: var(--z-back-to-top);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    will-change: transform, opacity;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

#back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: var(--highlight-color);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.3);
}

#back-to-top:active {
    transform: scale(0.95);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .footer-wrapper {
        padding: 0;
    }

    .footer-quote {
        padding: 1.2rem 1rem;
    }

    .footer-quote p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .footer-content-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-section a:hover {
        padding-left: 0;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-quote {
        padding: 1rem;
    }

    .footer-quote p {
        font-size: 1rem;
    }

    .footer-content {
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-content-inner {
        padding: 1rem;
    }

    .footer-bottom {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    #back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* Light Theme Adjustments */
body.light-theme .footer-wrapper {
    background: linear-gradient(170deg, var(--light-secondary) 0%, var(--light-primary) 100%);
}

body.light-theme .footer-quote {
    background: rgba(201, 100, 66, 0.02);
    border-bottom: 1px solid var(--light-border);
}

body.light-theme .footer-quote p {
    color: var(--light-accent);
}

body.light-theme .footer-quote p::before,
body.light-theme .footer-quote p::after {
    color: var(--light-accent);
}

body.light-theme .footer-content {
    background: linear-gradient(to right, rgba(201, 100, 66, 0.02), rgba(201, 100, 66, 0.01));
}

body.light-theme .footer-logo {
    color: var(--light-accent);
}

body.light-theme .footer-logo::after {
    background: var(--light-accent);
}

body.light-theme .footer-links a,
body.light-theme .footer-connect a {
    color: var(--light-text-secondary);
}

body.light-theme .footer-links a:hover {
    color: var(--light-accent);
}

body.light-theme .footer-links a::before {
    background-color: var(--light-accent);
}

body.light-theme .footer-connect .social-icons a {
    background: rgba(201, 100, 66, 0.05);
}

body.light-theme .footer-connect .social-icons a:hover {
    color: var(--light-accent);
    background: rgba(201, 100, 66, 0.1);
}

body.light-theme .footer-bottom {
    background: rgba(15, 23, 42, 0.03);
}

body.light-theme .footer-bottom::before {
    background: linear-gradient(to right, transparent, var(--light-accent), transparent);
}

body.light-theme .footer-content-inner h3 {
    color: var(--light-text-primary);
}

body.light-theme .footer-content-inner h3::after {
    background-color: var(--light-accent);
}

body.light-theme #back-to-top {
    background: var(--light-accent);
    color: white;
}

body.light-theme #back-to-top:hover {
    background: var(--light-accent-hover);
    box-shadow: 0 6px 20px rgba(201, 100, 66, 0.3);
}
