/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    padding: 8rem 8% 4rem;
    background-color: var(--about-bg);
    border-top: 1px solid var(--switch-bg);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

/* --- Content Blocks --- */
.footer-brand, 
.footer-links {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.footer-brand {
    gap: 2.5rem;
}

/* --- Typography & Branding --- */
.logo-text {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--about-text);
    line-height: 1.2;
}

.logo-text span {
    color: var(--accent-color);
}

.footer-links h3 {
    color: var(--about-text);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 2.5rem;
    position: relative;
}

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

/* --- Links & Lists --- */
.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    color: var(--about-text);
    text-decoration: none;
    opacity: 0.6;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(5px);
}

/* --- Social Icons --- */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--switch-bg);
    border: 1px solid var(--switch-bg);
    color: var(--about-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--btn-primary-text);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--text-shadow);
}

/* --- Bottom Copyright --- */
.footer-bottom {
    flex: 0 0 100%;
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--switch-bg);
    text-align: center;
}

.footer-bottom p {
    color: var(--about-text);
    font-family: 'Archivo Black', sans-serif;
    opacity: 0.3;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   SCROLL CONTROLS
   ========================================================================== */
.scroll-controls {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.scroll-controls button {
    width: 48px;
    height: 48px;
    border: 1px solid var(--accent-color);
    background: var(--about-bg);
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.scroll-controls button:hover {
    background: var(--accent-color);
    color: var(--btn-primary-text);
}

/* ==========================================================================
   VISIBILITY CLASSES (Desktop-First)
   ========================================================================== */
/* Strictly hide on Laptop/Desktop */
.display-hide {
    display: none !important;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* 1. Ultra Wide Screens */
@media (min-width: 1400px) {
    .footer-container { max-width: 1400px; }
}

/* 2. Standard Laptops */
@media (max-width: 1200px) {
    .footer { padding: 6rem 5% 4rem; }
    .footer-container { gap: 40px; }
}

/* 3. Tablets & Large Mobile (Collapse point) */
@media (max-width: 992px) {
    .footer { padding: 5rem 5% 3rem; }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    /* Show mobile details only here */
    .display-hide {
        display: block !important;
        margin-top: 1rem;
        color: var(--about-text);
        opacity: 0.8;
        font-size: 0.9rem;
    }

    .footer-brand, 
    .footer-links {
        width: 100%;
        min-width: unset;
        align-items: center;
    }

    .social-links { justify-content: center; }

    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom { margin-top: 4rem; }
}

/* 4. Small Tablets */
@media (max-width: 768px) {
    .footer { padding: 4rem 5% 2rem; }
    .footer-brand { gap: 1.5rem; }
}

/* 5. Standard Mobile Phones */
@media (max-width: 480px) {
    .logo-text { font-size: 1.1rem; }
    
    .scroll-controls {
        right: 15px;
        bottom: 15px;
    }

    .scroll-controls button {
        width: 42px;
        height: 42px;
    }

    .footer-links ul li a { font-size: 0.8rem; }
}

/* 6. Foldables & Tiny Devices */
@media (max-width: 320px) {
    .footer { padding: 3rem 4% 2rem; }
    .footer-container { gap: 30px; }
    
    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 0;
    }

    .social-links { gap: 8px; }
    .social-links a {
        width: 35px;
        height: 35px;
    }
}