* =========================================================
   AminAbbasi.org — Premium Footer
   Path: assets/css/amin-footer.css
========================================================= */

.amin-site-footer,
.amin-site-footer * {
    box-sizing: border-box;
}

.amin-site-footer {
    --amin-footer-bg: #07111f;
    --amin-footer-panel: rgba(255, 255, 255, 0.055);
    --amin-footer-panel-hover: rgba(255, 255, 255, 0.08);
    --amin-footer-border: rgba(255, 255, 255, 0.11);
    --amin-footer-text: #f8fafc;
    --amin-footer-muted: #aebbd0;
    --amin-footer-soft: #d9e2ef;
    --amin-footer-blue: #52a7ff;
    --amin-footer-cyan: #2dd4bf;
    --amin-footer-violet: #9b8cff;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: clamp(44px, 6vw, 88px);
    padding: 64px 20px 26px;
    direction: rtl;
    color: var(--amin-footer-text);
    background:
        radial-gradient(circle at 80% 0%, rgba(82, 167, 255, 0.14), transparent 35%),
        radial-gradient(circle at 10% 100%, rgba(155, 140, 255, 0.13), transparent 34%),
        linear-gradient(145deg, #081626 0%, var(--amin-footer-bg) 55%, #050b14 100%);
}

.amin-footer-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 1240px);
    margin-inline: auto;
}

.amin-footer-grid-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

.amin-footer-orb {
    position: absolute;
    z-index: 1;
    width: 340px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(80px);
    pointer-events: none;
}

.amin-footer-orb--one {
    top: -170px;
    right: -80px;
    background: #3b82f6;
}

.amin-footer-orb--two {
    bottom: -210px;
    left: -70px;
    background: #8b5cf6;
}

/* Hero */
.amin-footer-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 28px;
    border: 1px solid var(--amin-footer-border);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.amin-footer-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.amin-footer-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 23px;
    color: #fff;
    text-decoration: none;
    background:
        linear-gradient(145deg, rgba(82, 167, 255, 0.95), rgba(124, 92, 255, 0.95));
    box-shadow:
        0 16px 34px rgba(70, 105, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amin-footer-mark:hover {
    color: #fff;
    transform: translateY(-3px) rotate(-2deg);
    box-shadow:
        0 20px 40px rgba(70, 105, 255, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.amin-footer-mark span {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -1px;
}

.amin-footer-intro {
    max-width: 620px;
}

.amin-footer-kicker {
    display: block;
    margin-bottom: 6px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.amin-footer-intro h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(21px, 2.2vw, 31px);
    font-weight: 900;
    line-height: 1.55;
}

.amin-footer-intro p {
    max-width: 640px;
    margin: 0;
    color: var(--amin-footer-muted);
    font-size: 14px;
    line-height: 2;
}

.amin-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 270px);
    flex: 0 0 270px;
}

.amin-footer-contact,
.amin-footer-email {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: 17px;
    font: inherit;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.amin-footer-contact {
    border: 0;
    color: #04111e;
    background: linear-gradient(135deg, #7dd3fc, #5eead4);
    box-shadow: 0 12px 30px rgba(45, 212, 191, 0.16);
}

.amin-footer-email {
    border: 1px solid var(--amin-footer-border);
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
}

.amin-footer-contact:hover,
.amin-footer-email:hover {
    transform: translateY(-2px);
}

.amin-footer-contact:hover {
    color: #04111e;
    box-shadow: 0 16px 36px rgba(45, 212, 191, 0.23);
}

.amin-footer-email:hover {
    color: #fff;
    border-color: rgba(125, 211, 252, 0.38);
    background: rgba(255, 255, 255, 0.07);
}

.amin-footer-contact svg,
.amin-footer-email svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.amin-footer-contact span,
.amin-footer-email span {
    display: grid;
    gap: 1px;
    min-width: 0;
    font-size: 13px;
    font-weight: 900;
}

.amin-footer-contact small,
.amin-footer-email small {
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.72;
}

.amin-footer-email span {
    direction: ltr;
    text-align: left;
    overflow-wrap: anywhere;
}

/* Main grid */
.amin-footer-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(290px, 1.18fr);
    gap: 14px;
    margin-top: 16px;
}

.amin-footer-panel,
.amin-footer-trust {
    min-width: 0;
    border: 1px solid var(--amin-footer-border);
    border-radius: 24px;
    background: var(--amin-footer-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.amin-footer-panel {
    padding: 22px;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

.amin-footer-panel:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 211, 252, 0.22);
    background: var(--amin-footer-panel-hover);
}

.amin-footer-panel-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.amin-footer-panel-head h3,
.amin-footer-trust h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.6;
}

.amin-footer-panel-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 12px;
    color: #7dd3fc;
    background: rgba(82, 167, 255, 0.09);
}

.amin-footer-panel-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.amin-footer-links {
    display: grid;
    gap: 5px;
}

.amin-footer-links a,
.amin-footer-link-button {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 17px 4px 0;
    border: 0;
    color: var(--amin-footer-muted);
    background: transparent;
    font: inherit;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.9;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.amin-footer-links a::before,
.amin-footer-link-button::before {
    content: "";
    position: absolute;
    right: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(125, 211, 252, 0.45);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.amin-footer-links a:hover,
.amin-footer-link-button:hover {
    color: #fff;
    transform: translateX(-3px);
}

.amin-footer-links a:hover::before,
.amin-footer-link-button:hover::before {
    background: #5eead4;
    box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.09);
}

/* Trust */
.amin-footer-trust {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background:
        linear-gradient(145deg, rgba(82, 167, 255, 0.09), rgba(155, 140, 255, 0.045));
}

.amin-footer-trust-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 9px;
    border: 1px solid rgba(94, 234, 212, 0.18);
    border-radius: 999px;
    color: #99f6e4;
    background: rgba(45, 212, 191, 0.08);
    font-size: 10px;
    font-weight: 800;
}

.amin-footer-trust p {
    margin: 8px 0 14px;
    color: var(--amin-footer-muted);
    font-size: 11.5px;
    line-height: 1.95;
}

.amin-footer-security {
    display: grid;
    gap: 8px;
}

.amin-footer-security span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--amin-footer-soft);
    font-size: 10.5px;
    font-weight: 700;
}

.amin-footer-security svg {
    width: 16px;
    height: 16px;
    color: #5eead4;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.amin-footer-enamad {
    display: grid;
    place-items: center;
    width: 92px;
    min-height: 112px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.17);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.amin-footer-enamad:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.23);
}

.amin-footer-enamad img {
    display: block;
    width: auto;
    max-width: 72px;
    height: auto;
    max-height: 92px;
    object-fit: contain;
}

/* Bottom */
.amin-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 20px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.amin-footer-bottom p {
    margin: 0;
    color: #8796ac;
    font-size: 11.5px;
    line-height: 1.9;
}

.amin-footer-bottom p a {
    color: #dbeafe;
    font-weight: 800;
    text-decoration: none;
}

.amin-footer-bottom-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.amin-footer-bottom-nav a,
.amin-footer-bottom-nav button {
    padding: 0;
    border: 0;
    color: #94a3b8;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.amin-footer-bottom-nav a:hover,
.amin-footer-bottom-nav button:hover {
    color: #fff;
}

@media (max-width: 1100px) {
    .amin-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amin-footer-trust {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .amin-site-footer {
        padding-inline: 16px;
    }

    .amin-footer-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .amin-footer-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 640px) {
    .amin-site-footer {
        margin-top: 36px;
        padding: 42px 14px 138px;
    }

    .amin-footer-hero {
        gap: 24px;
        padding: 22px 18px;
        border-radius: 24px;
    }

    .amin-footer-identity {
        align-items: flex-start;
        gap: 14px;
    }

    .amin-footer-mark {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 17px;
    }

    .amin-footer-mark span {
        font-size: 17px;
    }

    .amin-footer-intro h2 {
        margin-bottom: 7px;
        font-size: 20px;
        line-height: 1.65;
    }

    .amin-footer-intro p {
        font-size: 12px;
        line-height: 1.95;
    }

    .amin-footer-actions {
        grid-template-columns: 1fr;
    }

    .amin-footer-contact,
    .amin-footer-email {
        min-height: 56px;
    }

    .amin-footer-main {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .amin-footer-trust {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr) 86px;
        border-radius: 22px;
    }

    .amin-footer-panel {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .amin-footer-bottom {
        align-items: flex-start;
        flex-direction: column-reverse;
        gap: 12px;
        padding-top: 18px;
    }

    .amin-footer-bottom-nav {
        width: 100%;
        gap: 14px 18px;
    }
}

@media (max-width: 400px) {
    .amin-site-footer {
        padding-inline: 11px;
    }

    .amin-footer-identity {
        display: grid;
    }

    .amin-footer-trust {
        grid-template-columns: 1fr;
    }

    .amin-footer-enamad {
        width: 100%;
        min-height: 105px;
    }

    .amin-footer-enamad img {
        max-height: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amin-site-footer *,
    .amin-site-footer *::before,
    .amin-site-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}