/* ================================================================
   PUBLIC FOOTER
   Professional dark-themed footer matching header
   ================================================================ */

.public-footer {
    font-family: 'Poppins', sans-serif;
    background: var(--main-dark-blue);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    margin-top: 4rem;
}

/* Subtle top gradient accent */
.public-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--main-green) 0%, 
        var(--main-red) 50%, 
        var(--main-green) 100%);
}

/* ================================================================
   MAIN FOOTER
   ================================================================ */
.footer-main {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(180deg, #020618 0%, #0a1628 100%);
    position: relative;
}

/* Decorative background glow */
.footer-main::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 201, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224, 25, 30, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* 3-Column Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.2fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* ================================================================
   COLUMN 1: ABOUT
   ================================================================ */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.footer-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--main-green), #00b347);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 201, 80, 0.3);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-logo-name::first-letter {
    font-size: 1.6rem;
    color: var(--main-green);
    font-weight: 900;
}

.footer-logo-tag {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    align-self: flex-end;
    margin-top: 2px;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.footer-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 201, 80, 0.08);
    border: 1px solid rgba(0, 201, 80, 0.25);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-partner-badge:hover {
    background: rgba(0, 201, 80, 0.12);
    border-color: rgba(0, 201, 80, 0.4);
    transform: translateY(-2px);
}

.footer-partner-badge > i {
    color: var(--main-green);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 4px rgba(0, 201, 80, 0.5));
}

.footer-partner-badge strong {
    display: block;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1px;
}

.footer-partner-badge span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
}

/* ================================================================
   COLUMN 2: QUICK PAGES
   ================================================================ */
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-heading i {
    color: var(--main-green);
    font-size: 1rem;
}

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

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 201, 80, 0.15), transparent);
    transition: width 0.3s ease;
}

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

.footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.footer-links a > i:first-child {
    color: var(--main-green);
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.footer-links a:hover > i:first-child {
    transform: scale(1.15);
}

.link-arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
    color: var(--main-green);
    font-size: 0.8rem !important;
}

.footer-links a:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ================================================================
   COLUMN 3: CONTACT & SOCIAL
   ================================================================ */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 201, 80, 0.1);
    border: 1px solid rgba(0, 201, 80, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-green);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.footer-contact-list li:hover .contact-icon {
    background: var(--main-green);
    color: #ffffff;
    transform: scale(1.05);
}

.contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-text strong {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-text span,
.contact-text a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.contact-text a:hover {
    color: var(--main-green);
}

/* Social Media Section */
.footer-social {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-heading {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    color: #ffffff;
}

/* Brand-specific hover colors */
.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.4);
}

.social-icon.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.social-icon.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.4);
}

.social-icon.tiktok:hover {
    background: #000000;
    border-color: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

/* ================================================================
   BOTTOM BAR
   ================================================================ */
.footer-bottom {
    background: #000310;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-copyright i {
    color: var(--main-green);
    font-size: 0.95rem;
}

.footer-copyright strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--main-green);
    transition: width 0.25s ease;
}

.footer-legal a:hover {
    color: var(--main-green);
}

.footer-legal a:hover::after {
    width: 100%;
}

/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--main-red);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(224, 25, 30, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #c01519;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(224, 25, 30, 0.5);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

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

/* Tablet */
@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
    
    .footer-description {
        max-width: 600px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .public-footer {
        margin-top: 2.5rem;
    }
    
    .footer-main {
        padding: 2.5rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: auto;
    }
    
    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-legal {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-logo-name {
        font-size: 1.2rem;
    }
    
    .footer-logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.82rem;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-legal {
        font-size: 0.75rem;
    }
}

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

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