/* =================================================================
   MODERN FOOTER - SOFT UI DESIGN
   ================================================================= */

footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: var(--space-3xl) 0 0;
    margin-top: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

footer::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -20px) scale(1.1);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.footer-logo img {
    height: 70px;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-brand {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-slogan {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--font-weight-medium);
    font-style: italic;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--line-height-relaxed);
    max-width: 500px;
    font-size: var(--font-size-base);
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.footer-apps {
    grid-column: span 2;
}

.footer-links h4,
.footer-social h4,
.footer-apps h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: var(--white);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-links h4::after,
.footer-social h4::after,
.footer-apps h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
    font-size: var(--font-size-sm);
    position: relative;
    padding-left: var(--space-md);
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-base);
    color: var(--accent-color);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: var(--space-lg);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-social .social-links {
    display: flex;
    gap: var(--space-md);
}

.footer-social .social-links a {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.footer-social .social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.footer-social .social-links a:hover {
    transform: translateY(-5px) scale(1.15);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.footer-social .social-links a:hover::before {
    opacity: 1;
}

.footer-social .social-links a i {
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
}

.footer-social .social-links a:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* App Download Buttons */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.app-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.app-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.app-btn-small {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-btn-large {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 1;
}

.copyright p,
.developer-credit p {
    margin: 0;
}

.developer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
    position: relative;
}

.developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-base);
}

.developer-link:hover {
    color: var(--white);
}

.developer-link:hover::after {
    width: 100%;
}

/* Responsive Footer */
@media screen and (max-width: 1023px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    footer {
        padding: var(--space-2xl) 0 0;
        margin-top: var(--space-2xl);
    }
    
    .footer-content {
        gap: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    
    .footer-left,
    .footer-logo {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-description {
        margin: 0 auto;
    }
    
    .footer-right {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-social h4::after,
    .footer-apps h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul li a {
        padding-left: 0;
    }
    
    .footer-links ul li a::before {
        display: none;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    .footer-apps {
        grid-column: 1;
    }
    
    .app-buttons {
        align-items: center;
    }
    
    .app-btn {
        max-width: 250px;
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
        padding: var(--space-lg) 0;
    }
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.6);
}

.back-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

.back-to-top i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-right {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-apps {
        grid-column: span 2;
    }
    
    .app-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 768px) {
    footer {
        padding: 3rem 0 0;
    }
    
    .footer-right {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-apps {
        grid-column: auto;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-brand {
        font-size: 1.5rem;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    .footer-apps h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .app-buttons {
        align-items: center;
    }
    
    .app-btn {
        max-width: 200px;
        width: 100%;
    }
}