/* ============================================================
   REFINED FOOTER STYLESHEET - Glassmorphism & Premium Finish
   ============================================================ */

/* ============================================================
   FOOTER CONTAINER & LAYOUT
   ============================================================ */

.footer {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.6), rgba(30, 35, 40, 0.4));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3.5rem 0 2rem;
    margin-top: 3rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle animated background gradient */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(231, 76, 60, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* ============================================================
   FOOTER CONTENT GRID
   ============================================================ */

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
}

/* ============================================================
   FOOTER SECTIONS
   ============================================================ */

.footer-section {
    animation: fadeInUp 0.6s ease-out backwards;
}

.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; }

/* ============================================================
   FOOTER LOGO & BRANDING
   ============================================================ */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-logo:hover {
    transform: translateX(4px);
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    object-fit: cover;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 15px rgba(255, 107, 157, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 
        0 8px 24px rgba(255, 107, 157, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-logo-text {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #ff6b9d, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-text {
    filter: brightness(1.1);
}

/* ============================================================
   FOOTER DESCRIPTION
   ============================================================ */

.footer-description {
    color: #b8c5d1;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-section:hover .footer-description {
    color: #c8d5e1;
}

/* ============================================================
   FOOTER TITLES
   ============================================================ */

.footer-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, #e74c3c);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-section:hover .footer-title::after {
    width: 40px;
}

/* ============================================================
   FOOTER LINKS
   ============================================================ */

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    transition: all 0.2s ease;
}

.footer-links a {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, #e74c3c);
    transform: translateY(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 107, 157, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-left: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
}

.footer-links a:hover::before {
    width: 3px;
}

/* ============================================================
   FOOTER CONTACT SECTION
   ============================================================ */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b8c5d1;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.footer-contact p:hover {
    color: #ffffff;
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.12);
}

.footer-contact i {
    color: #ff6b9d;
    width: 18px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-contact p:hover i {
    color: #e74c3c;
    transform: scale(1.2) rotate(5deg);
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c5d1;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    font-size: 1.2rem;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(231, 76, 60, 0.3));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(231, 76, 60, 0.2));
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 
        0 8px 24px rgba(255, 107, 157, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ============================================================
   FOOTER BOTTOM
   ============================================================ */

.footer-bottom {
    text-align: center;
    padding: 2rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8a9ba8;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    transition: all 0.3s ease;
}

.footer-bottom:hover p {
    color: #b8c5d1;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 2rem;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        border-radius: 28px 28px 0 0;
    }

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

    .footer-section {
        padding: 0 0.5rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }

    .footer-links a:hover {
        padding-left: 1rem;
    }

    .footer-contact p {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 0.75rem;
        justify-content: center;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding: 1.5rem 1rem 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 1.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        border-radius: 24px 24px 0 0;
    }

    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        margin-bottom: 1rem;
    }

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

    .footer-logo-text {
        font-size: 1.1rem;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .footer-title::after {
        width: 30px;
    }

    .footer-links {
        gap: 0.4rem;
    }

    .footer-links a {
        padding: 0.35rem 0.4rem;
        font-size: 0.85rem;
    }

    .footer-contact {
        gap: 0.75rem;
    }

    .footer-contact p {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .footer-bottom {
        padding: 1.25rem 0.75rem 0;
        font-size: 0.8rem;
    }
}

/* ============================================================
   PERFORMANCE OPTIMIZATION
   ============================================================ */

/* Use will-change sparingly for performance */
.footer-links a:hover,
.social-link:hover,
.footer-contact p:hover {
    will-change: transform, box-shadow;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer,
    .footer-section,
    .footer-logo,
    .footer-links a,
    .social-link,
    .footer-contact p {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, rgba(15, 20, 25, 0.7), rgba(30, 35, 40, 0.5));
    }
}
