/* =========================
   APP LAYOUT (STICKY FOOTER)
========================= */

/* 🔥 FIX: use min-height, not height */
html, body {
    min-height: 100%;
    margin: 0;
}

/* Main layout wrapper */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content grows but never hides footer */
.app-content {
    flex: 1 0 auto;
    padding-bottom: 32px;
    overflow-x: hidden;
}

/* =========================
   FOOTER BASE
========================= */

.app-footer {
    background: linear-gradient(180deg, #020617, #0b1220);
    color: #94a3b8;
    padding: 56px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 5; /* 🔥 ensures footer stays visible */
}

/* subtle glow line */
.app-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 70%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(111, 45, 189, 0.5),
        transparent
    );
}

/* =========================
   FOOTER GRID
========================= */

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.6fr;
    gap: 42px;
}

/* =========================
   BRAND / ABOUT
========================= */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.brand-icon {
    font-size: 22px;
    color: #6f2dbd;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 18px;
}

/* =========================
   SOCIAL ICONS
========================= */

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials .social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(253, 224, 71, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fde047;
    font-size: 17px;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.footer-socials .social:hover {
    background: rgba(253, 224, 71, 0.25);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(253, 224, 71, 0.25);
}

/* =========================
   FOOTER COLUMNS
========================= */

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 16px;
    position: relative;
}

.footer-col h4::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: #6f2dbd;
    margin-top: 6px;
    border-radius: 2px;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #6f2dbd;
    transition: width 0.25s ease;
}

.footer-col a:hover {
    color: #e5e7eb;
    transform: translateX(6px);
}

.footer-col a:hover::after {
    width: 100%;
}

/* =========================
   COMPANY / CONTACT INFO
========================= */

.footer-company .company-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-company .company-line i {
    color: #6f2dbd;
    font-size: 15px;
}

.footer-company .company-line:hover {
    transform: translateX(4px);
    color: #e5e7eb;
}

/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {
    margin-top: 44px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.9;
    gap: 12px;
}

/* =========================
   DEVELOPER CREDIT
========================= */

.developed-by {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dev-link {
    color: #fde047;
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

.dev-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #fde047;
    transition: width 0.25s ease;
}

.dev-link:hover {
    color: #facc15;
}

.dev-link:hover::after {
    width: 100%;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}
