/* ==========================================================================
   HIGH-PREMIUM WHITE THEMED FOOTER COMPONENT
   ========================================================================== */

.main-footer {
    position: relative;
    background-color: var(--white);
    color: var(--text-main);
    padding: 100px 0 40px;
    margin-top: 120px;
    border-top: 1px solid var(--border);
    overflow: hidden;
    z-index: 10;
}

/* Fluid Moving Particles Wrapper Configurations */
.footer-particles-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.75; /* Boosted visibility against the crisp white layout context */
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
    gap: 48px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Core Corporate Typography Configurations */
.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-logo span {
    color: var(--primary);
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ==========================================================================
   PREMIUM SOCIAL MEDIA BUTTON MODULES
   ========================================================================== */

.social-links {
    display: flex;
    gap: 14px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon--linkedin:hover {
    background: #0077b5;
    color: var(--white);
    border-color: #0077b5;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.25);
}

.social-icon--facebook:hover {
    background: #1877f2;
    color: var(--white);
    border-color: #1877f2;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
}

/* Links & Typography Spacing */
.footer-links h4, 
.footer-contact h4 {
    color: var(--text-main);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.footer-contact a:hover {
    color: var(--primary);
}

/* ==========================================================================
   CENTERED FOOTER BOTTOM DESIGN
   ========================================================================== */

.footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bottom-centered-flex {
    display: flex;
    justify-content: center; /* Perfectly centers copyright block horizontally */
    align-items: center;
    text-align: center;
}

.bottom-centered-flex p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   STICKED/FIXED LIVE LOADING PROGRESS RADIAL CIRCLE BACK-TO-TOP
   ========================================================================== */

.back-to-top-fixed {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    outline: none;
    z-index: 9999; /* Forces component above all header/navigation wrappers */
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.85);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Class Display State Trigger */
.back-to-top-fixed.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Adjusts circle fill point origin to the top center */
}

.progress-circle__bg {
    fill: var(--white);
    stroke: rgba(226, 232, 240, 0.8);
    stroke-width: 5;
}

.progress-circle__fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 5;
    stroke-linecap: round;
    
    /* Radial Circumference Tracking Vector Math (2 * PI * r) -> 2 * 3.14159 * 44 = 276.46 */
    stroke-dasharray: 276.46;
    stroke-dashoffset: 276.46;
    transition: stroke-dashoffset 0.08s linear;
}

.arrow-icon {
    position: relative;
    z-index: 3;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.3s ease;
}

/* Interactions */
.back-to-top-fixed:hover {
    box-shadow: 0 10px 25px rgba(0, 122, 135, 0.18);
    transform: translateY(-4px);
}

.back-to-top-fixed:hover .arrow-icon {
    transform: translateY(-2px);
}

/* Responsive Structural Fallbacks */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .back-to-top-fixed {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .main-footer { padding: 60px 0 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}