/* =========================================================
   footer.css  —  Embedded Projects  (v4)
   ========================================================= */

/* ── Variables ── */
:root {
    --ft-bg:        #060f2a;
    --ft-bg2:       #091535;
    --ft-border:    rgba(0,198,255,0.12);
    --ft-text:      rgba(255,255,255,0.65);
    --ft-text-dim:  rgba(255,255,255,0.55);
    --ft-white:     #ffffff;
    --ft-blue:      #1a6fc4;
    --ft-sky:       #00c6ff;
    --ft-navy:      #020e38;
    --ft-mono:      'Fira Code','Share Tech Mono',monospace;
    --ft-sans:      'Exo 2',sans-serif;
}

/* ── Wrapper ── */
.site-footer {
    position: relative;
    background: var(--ft-bg);
    overflow: hidden;
    font-family: var(--ft-sans);
}

/* ── Circuit trace top decoration ── */
.footer-circuit {
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}
.footer-circuit svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ══════════════════════════════════════════════
   MAIN BODY
══════════════════════════════════════════════ */
.footer-body {
    padding: 2.8rem 0 2rem;
    border-top: 1px solid var(--ft-border);
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

/* ══════════════════════════════════════════════
   COLUMN — BRAND
══════════════════════════════════════════════ */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo__icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid rgba(0,198,255,0.3);
    background: rgba(0,198,255,0.08);
    padding: 3px;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-logo:hover .footer-logo__icon {
    border-color: var(--ft-sky);
    background: rgba(0,198,255,0.15);
}
.footer-logo__text {
    display: flex;
    flex-direction: column;
}
.footer-logo__name {
    font-family: var(--ft-sans);
    font-weight: 900;
    font-size: 1rem;
    color: var(--ft-white);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.footer-logo__tag {
    font-family: var(--ft-mono);
    font-size: 0.6rem;
    color: var(--ft-sky);
    letter-spacing: 0.05em;
    margin-top: 1px;
}
.footer-brand__desc {
    font-size: 0.82rem;
    color: var(--ft-text);
    line-height: 1.7;
    margin: 0 0 1.4rem;
    max-width: 300px;
}

/* Social icons row */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-social {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
                background 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}
.footer-social:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.footer-social--yt:hover { background:#ff0000; border-color:#ff0000; }
.footer-social--wa:hover { background:#25d366; border-color:#25d366; }
.footer-social--tg:hover { background:#0088cc; border-color:#0088cc; }
.footer-social--ig:hover { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color:#e6683c; }
.footer-social--tw:hover { background:#1da1f2; border-color:#1da1f2; }
.footer-social--gh:hover { background:#333;    border-color:#666; }
.footer-social--fb:hover { background:#1877f2; border-color:#1877f2; }

/* ══════════════════════════════════════════════
   COLUMN TITLES + LINKS
══════════════════════════════════════════════ */
.footer-col__title {
    font-family: var(--ft-sans);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ft-white);
    margin: 0 0 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ft-border);
    position: relative;
}
.footer-col__title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--ft-blue), var(--ft-sky));
    border-radius: 2px;
}
.footer-col__title i {
    color: var(--ft-sky);
    font-size: 0.72rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.footer-links li a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: var(--ft-text);
    text-decoration: none;
    border-radius: 5px;
    transition: color 0.18s ease,
                background 0.18s ease,
                transform 0.18s ease,
                padding-left 0.18s ease;
}
.footer-links li a:hover {
    color: var(--ft-white);
    background: rgba(0,198,255,0.07);
    padding-left: 0.85rem;
}
.footer-links li a i {
    font-size: 0.7rem;
    color: var(--ft-sky);
    opacity: 0.7;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    transition: opacity 0.18s ease;
}
.footer-links li a:hover i { opacity: 1; }

.footer-soon {
    font-family: var(--ft-mono);
    font-size: 0.55rem;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 8px;
    padding: 1px 5px;
    margin-left: auto;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   CONTACT ITEMS
══════════════════════════════════════════════ */
.footer-contact__items {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    text-decoration: none;
    color: var(--ft-text);
    font-size: 0.78rem;
    line-height: 1.5;
    border-radius: 7px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.footer-contact__item:hover {
    color: var(--ft-white);
    background: rgba(0,198,255,0.08);
    border-color: rgba(0,198,255,0.2);
}
.footer-contact__icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 6px;
    background: rgba(0,198,255,0.1);
    border: 1px solid rgba(0,198,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--ft-sky);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ══════════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════════ */
.footer-bottom {
    background: var(--ft-bg2);
    border-top: 1px solid var(--ft-border);
    padding: 0.9rem 0;
}
.footer-bottom__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom__left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    color: var(--ft-text-dim);
}
.footer-bottom__favicon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    opacity: 0.6;
}
.footer-bottom__right {
    font-size: 0.72rem;
    color: var(--ft-text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-bottom__made i { animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat {
    0%,100% { transform: scale(1); }
    14%     { transform: scale(1.25); }
    28%     { transform: scale(1); }
    42%     { transform: scale(1.15); }
    70%     { transform: scale(1); }
}

/* ══════════════════════════════════════════════
   SMALL TABLET  (481px – 680px)
══════════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 680px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        padding: 0 1.2rem;
    }
    .footer-col--brand      { grid-column: 1 / -1; }
    .footer-brand__desc     { max-width: 100%; font-size: 0.78rem; }
    .footer-body            { padding: 1.8rem 0 1.4rem; }
    .footer-bottom__inner   { padding: 0 1.2rem; }
    .footer-col__title      { font-size: 0.72rem; }
    .footer-links li a      { font-size: 0.76rem; }
    .footer-social          { width: 34px; height: 34px; }
}

/* ══════════════════════════════════════════════
   TABLET  (681px – 1000px)
══════════════════════════════════════════════ */
@media (min-width: 681px) and (max-width: 1000px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .footer-col--brand      { grid-column: 1 / -1; }
    .footer-brand__desc     { max-width: 100%; }
    .footer-body            { padding: 2rem 0 1.6rem; }
    .footer-bottom__inner   { padding: 0 1.5rem; }
    .footer-col__title      { font-size: 0.74rem; }
    .footer-links li a      { font-size: 0.78rem; }
    .footer-logo__name      { font-size: 0.98rem; }
    .footer-socials         { gap: 0.5rem; }
}

/* ══════════════════════════════════════════════
   MOBILE  (max-width: 480px)
══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .footer-circuit { height: 30px; }

    .site-footer    { overflow-x: hidden; }

    .footer-body    { padding: 1.5rem 0 1.2rem; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding: 0 1rem;
        box-sizing: border-box;
        width: 100%;
    }
    .footer-col--brand { order: -1; }

    /* Logo */
    .footer-logo        { margin-bottom: 0.75rem; gap: 0.6rem; }
    .footer-logo__icon  { width: 30px; height: 30px; }
    .footer-logo__name  { font-size: 0.9rem; }
    .footer-logo__tag   { font-size: 0.55rem; }
    .footer-brand__desc { font-size: 0.74rem; max-width: 100%; margin-bottom: 0.9rem; line-height: 1.6; }

    /* Social icons — touch-friendly 36x36 minimum */
    .footer-socials     { gap: 0.45rem; flex-wrap: wrap; }
    .footer-social      { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 8px; }
    .footer-social:hover { transform: none; box-shadow: none; }

    /* Column title */
    .footer-col__title  { font-size: 0.68rem; margin-bottom: 0.6rem; padding-bottom: 0.4rem; letter-spacing: 0.08em; }

    /* Links — touch-friendly min 44px height */
    .footer-links       { gap: 0; }
    .footer-links li a  { font-size: 0.74rem; padding: 0.45rem 0.5rem; min-height: 36px; }
    .footer-links li a:hover { padding-left: 0.5rem; background: none; }
    .footer-links li a i    { font-size: 0.65rem; width: 12px; }
    .footer-soon        { font-size: 0.5rem; padding: 1px 4px; }

    /* Contact items */
    .footer-contact__items  { gap: 0.45rem; }
    .footer-contact__item   { font-size: 0.7rem; padding: 0.45rem 0.55rem; gap: 0.55rem; }
    .footer-contact__icon   { width: 24px; height: 24px; min-width: 24px; font-size: 0.62rem; border-radius: 5px; }

    /* Bottom bar */
    .footer-bottom          { padding: 0.75rem 0; }
    .footer-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0 1rem;
    }
    .footer-bottom__left    { font-size: 0.66rem; gap: 0.4rem; }
            .footer-bottom__right   { font-size: 0.64rem; }
    .footer-bottom__favicon { width: 15px; height: 15px; }
}

/* ══════════════════════════════════════════════
   DESKTOP  (min-width: 1001px)
══════════════════════════════════════════════ */
@media (min-width: 1001px) {
    .footer-inner {
        grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
        gap: 2.5rem;
    }
    .footer-social:hover {
        transform: translateY(-3px) scale(1.1);
    }
    .footer-links li a:hover {
        padding-left: 0.85rem;
    }
}

/* ══════════════════════════════════════════════
   LARGE DESKTOP  (min-width: 1280px)
══════════════════════════════════════════════ */
@media (min-width: 1280px) {
    .footer-inner       { gap: 3rem; }
    .footer-logo__name  { font-size: 1.05rem; }
    .footer-brand__desc { font-size: 0.85rem; }
    .footer-links li a  { font-size: 0.84rem; }
}

/* ── footer-logo and contact tablet fix ── */
@media (min-width: 481px) and (max-width: 680px) {
    .footer-logo            { gap: 0.6rem; margin-bottom: 0.8rem; }
    .footer-contact__item   { font-size: 0.74rem; padding: 0.45rem 0.55rem; }
    .footer-contact__icon   { width: 22px; height: 22px; min-width: 22px; }
}
@media (min-width: 681px) and (max-width: 1000px) {
    .footer-logo            { gap: 0.7rem; margin-bottom: 0.9rem; }
    .footer-contact__item   { font-size: 0.76rem; }
    .footer-contact__icon   { width: 24px; height: 24px; min-width: 24px; }
}