/* ══════════════════════════════════════════
   AGS SECURITY SOLUTIONS — GLOBAL STYLES
   Glassmorphism Edition | Mobile-First
   ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Outfit:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

:root {
    --red: #C8102E;
    --red-dark: #9B0C22;
    --red-light: #E63250;
    --red-glow: rgba(200, 16, 46, 0.18);
    --pearl: #F7F4F0;
    --white: #FFFFFF;
    --ink: #1A1C1E;
    --ink-soft: #2E3035;
    --steel: #4A5060;
    --muted: #7A8090;
    --border: rgba(26, 28, 30, 0.1);
    --border-red: rgba(200, 16, 46, 0.2);

    /* ── GLASSMORPHISM SYSTEM ── */
    --glass-white: rgba(255, 255, 255, 0.72);
    --glass-white-heavy: rgba(255, 255, 255, 0.88);
    --glass-pearl: rgba(247, 244, 240, 0.80);
    --glass-dark: rgba(26, 28, 30, 0.60);
    --glass-dark-heavy: rgba(26, 28, 30, 0.82);
    --glass-red: rgba(200, 16, 46, 0.08);
    --glass-red-medium: rgba(200, 16, 46, 0.14);

    --blur-sm: blur(8px) saturate(1.4);
    --blur: blur(18px) saturate(1.7);
    --blur-lg: blur(32px) saturate(1.8);

    --glass-border-light: rgba(255, 255, 255, 0.7);
    --glass-border-mid: rgba(255, 255, 255, 0.45);
    --glass-border-dark: rgba(255, 255, 255, 0.12);

    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 16px rgba(26, 28, 30, 0.08);
    --shadow-md: 0 8px 40px rgba(26, 28, 30, 0.12);
    --shadow-lg: 0 20px 60px rgba(26, 28, 30, 0.16);
    --shadow-red: 0 8px 32px rgba(200, 16, 46, 0.25);
    --shadow-glass: 0 8px 32px rgba(26, 28, 30, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--pearl);
    color: var(--ink);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--pearl);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.05;
}

h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.display {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
    line-height: 0.95;
}

.label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
}

.lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--steel);
    font-weight: 300;
}

/* ── LAYOUT ── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 48px;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

/* ── NAV ── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 76px;
    display: flex;
    align-items: center;
    background: var(--glass-white);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border-light);
    transition: box-shadow 0.3s, background 0.3s;
    /* Layered glass effect */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-sm);
}

#nav.scrolled {
    background: var(--glass-white-heavy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, var(--shadow-md);
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    color: var(--ink);
    line-height: 1;
}

.nav-logo-text em {
    color: var(--red);
    font-style: normal;
}

.nav-logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    display: block;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--steel);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-lang {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 10px;
    background: var(--glass-pearl);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border-light);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: all 0.2s;
    margin-right: 4px;
}

.nav-lang:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(200, 16, 46, 0.04);
}

.nav-cta {
    background: var(--red);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.22s;
    box-shadow: 0 2px 12px var(--red-glow), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.nav-cta:hover {
    background: var(--red-dark);
    box-shadow: var(--shadow-red);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-pearl);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-top: 1px solid var(--glass-border-light);
    z-index: 899;
    padding: 40px 24px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    min-height: 56px;
    display: flex;
    align-items: center;
}

.mobile-nav a:hover {
    color: var(--red);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.22s;
    min-height: 48px;
}

.btn-red {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 2px 14px var(--red-glow), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.btn-red:hover {
    background: var(--red-dark);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

.btn-outline-red {
    background: transparent;
    color: var(--red);
    border: 1.5px solid var(--red);
}

.btn-outline-red:hover {
    background: var(--red);
    color: var(--white);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--blur-sm);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: white;
}

.btn-white {
    background: var(--glass-white-heavy);
    backdrop-filter: var(--blur);
    color: var(--red);
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--shadow-glass);
}

.btn-white:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* ── GLASS CARD SYSTEM ── */
.glass-card {
    background: var(--glass-white);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    /* Sheen line at top */
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    border-radius: 0 0 2px 2px;
}

.glass-card-pearl {
    background: var(--glass-pearl);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.glass-card-dark {
    background: var(--glass-dark);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── RED ACCENT LINE ── */
.accent-line {
    width: 48px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin: 14px 0 24px;
}

.accent-line-center {
    margin: 14px auto 24px;
}

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
    background: linear-gradient(135deg, #e8e4e0 0%, #d4cfc9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.04) 0%, transparent 60%);
}

.img-placeholder svg {
    width: 36px;
    height: 36px;
    opacity: 0.35;
}

/* ── PAGE HERO BANNER ── */
.page-hero {
    padding-top: 76px;
    min-height: 380px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--ink-soft) 0%, var(--ink) 100%);
}

.page-hero-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 28, 30, 0.7) 0%, transparent 60%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 56px;
}

.page-hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: var(--white);
}

.page-hero-content .label {
    color: rgba(200, 16, 46, 0.9);
}

/* ── STAT ── */
.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

/* ── DIVIDER ── */
.divider {
    height: 1px;
    background: var(--border);
    border: none;
}

.divider-red {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    border: none;
}

/* ── FOOTER ── */
#footer {
    background: var(--ink);
    color: rgba(247, 244, 240, 0.7);
    padding: 72px 0 32px;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.4), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    color: var(--white);
}

.footer-logo-name em {
    color: var(--red);
    font-style: normal;
}

.footer-brand-text {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h5 {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col ul a {
    color: rgba(247, 244, 240, 0.45);
    text-decoration: none;
    font-size: 0.87rem;
    transition: all 0.2s;
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
}

.footer-bottom p {
    font-size: 0.78rem;
}

.footer-bottom a {
    color: var(--red);
    text-decoration: none;
}

/* ── FOOTER SOCIAL ICONS ── */
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: background 0.22s, transform 0.22s, border-color 0.22s;
    flex-shrink: 0;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.footer-emergency {
    background: rgba(200, 16, 46, 0.10);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(200, 16, 46, 0.22);
    border-left: 3px solid var(--red);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.footer-emergency span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 4px;
}

.footer-emergency strong {
    font-size: 1.05rem;
    color: var(--white);
    font-weight: 600;
}

/* ── SLIDE GALLERY ── */
.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    flex: 0 0 100%;
    position: relative;
}

.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    min-width: 8px;
    min-height: 8px;
}

.gallery-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-white);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    font-size: 1rem;
    color: var(--ink);
}

.gallery-arrow:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.gallery-arrow.prev {
    left: 16px;
}

.gallery-arrow.next {
    right: 16px;
}

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 1.5px 6px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: flex-start;
    gap: 13px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    max-width: 360px;
    min-width: 280px;
    overflow: hidden;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast-msg {
    flex: 1;
    min-width: 0;
}

.toast-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 2px;
    line-height: 1.3;
}

.toast-body {
    display: block;
    font-size: 0.84rem;
    color: #555;
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: #aaa;
    padding: 0;
    margin-top: -1px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 14px 14px;
    opacity: 0.5;
    transform-origin: left;
    animation: none;
}

.toast.show .toast-progress {
    animation: toast-drain 5s linear forwards;
}

@keyframes toast-drain {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ── SERVICES NAV BAR ── */
.services-nav-bar {
    position: sticky;
    top: 76px;
    z-index: 100;
    background: var(--glass-white);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border-light);
    box-shadow: 0 4px 20px rgba(26, 28, 30, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0 48px;
}

.services-nav-inner {
    display: flex;
    gap: 0;
    max-width: 1240px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.services-nav-inner::-webkit-scrollbar {
    display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .services-nav-bar {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 64px 0;
    }

    .section-sm {
        padding: 44px 0;
    }

    .nav-links,
    .nav-lang,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nav-inner {
        padding: 0 20px;
    }

    .page-hero {
        min-height: 300px;
    }

    .page-hero-content {
        padding: 48px 0 44px;
    }

    /* Mobile gallery arrows larger touch targets */
    .gallery-arrow {
        width: 44px;
        height: 44px;
    }

    /* Mobile toast full-width */
    .toast {
        left: 16px;
        right: 16px;
        max-width: none;
        min-width: 0;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 52px 0;
    }

    .btn {
        padding: 13px 20px;
        font-size: 0.8rem;
    }

    .accent-line {
        margin: 12px 0 20px;
    }
}





/* ══════════════════════════════════════════════════════════
     SOCIAL BANNER
     ▸ Desktop (≥ 640px) — fixed middle-right, vertical stack
     ▸ Mobile  (< 640px) — fixed bottom, horizontal dock
  ══════════════════════════════════════════════════════════ */

/* ── brand colour tokens ── */
.social-banner__item[data-net="twitter"] {
    --clr: #1d9bf0;
}

.social-banner__item[data-net="instagram"] {
    --clr: #e1306c;
}

.social-banner__item[data-net="facebook"] {
    --clr: #1877f2;
}

.social-banner__item[data-net="linkedin"] {
    --clr: #0a66c2;
}

.social-banner__item[data-net="youtube"] {
    --clr: #ff0000;
}

.social-banner__item[data-net="tiktok"] {
    --clr: #2d2d2d;
}

.social-banner__item[data-net="github"] {
    --clr: #24292e;
}

.social-banner__item[data-net="discord"] {
    --clr: #5865f2;
}

/* ─────────────────────────────
     DESKTOP  (default / ≥ 640px)
  ───────────────────────────── */
.social-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-banner__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    animation: slideInRight .55s cubic-bezier(.22, 1, .36, 1) forwards;
}

.social-banner__item:nth-child(1) {
    animation-delay: .05s;
}

.social-banner__item:nth-child(2) {
    animation-delay: .12s;
}

.social-banner__item:nth-child(3) {
    animation-delay: .19s;
}

.social-banner__item:nth-child(4) {
    animation-delay: .26s;
}

.social-banner__item:nth-child(5) {
    animation-delay: .33s;
}

.social-banner__item:nth-child(6) {
    animation-delay: .40s;
}

.social-banner__item:nth-child(7) {
    animation-delay: .47s;
}

.social-banner__item:nth-child(8) {
    animation-delay: .54s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* hover-reveal label */
.social-banner__label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--clr);
    padding: 0 12px;
    height: 44px;
    line-height: 44px;
    white-space: nowrap;
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}

.social-banner__icon-wrap {
    width: 44px;
    height: 44px;
    background: var(--clr);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px 0 0 4px;
    transition: box-shadow .2s ease;
    position: relative;
    z-index: 1;
}

.social-banner__icon-wrap svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    flex-shrink: 0;
    transition: transform .25s ease;
}

/* right accent strip */
.social-banner__item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--clr);
    filter: brightness(1.5);
}

/* hover (pointer devices only) */
@media (hover: hover) {
    .social-banner__item:hover .social-banner__label {
        opacity: 1;
        transform: translateX(0);
    }

    .social-banner__item:hover .social-banner__icon-wrap {
        box-shadow: -6px 0 24px -4px color-mix(in srgb, var(--clr) 70%, transparent);
    }

    .social-banner__item:hover .social-banner__icon-wrap svg {
        transform: scale(1.15);
    }
}

/* ─────────────────────────────
     MOBILE  (< 640px)
     Transforms into a bottom dock
  ───────────────────────────── */
@media (max-width: 639px) {

    /* reposition to bottom bar */
    .social-banner {
        right: unset;
        top: unset;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        align-items: stretch;
        gap: 0;
        background: rgba(13, 13, 13, .88);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, .07);
        /* respect notched / home-bar phones */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* hide labels — no room on mobile */
    .social-banner__label {
        display: none !important;
    }

    /* each icon is an equal-width tap target */
    .social-banner__item {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 0 8px;
        min-width: 0;
        /* remove desktop right-strip */
        border-right: none;
    }

    /* bottom colour accent instead of right */
    .social-banner__item::after {
        right: 0;
        left: 0;
        top: unset;
        bottom: 0;
        width: 100%;
        height: 3px;
    }

    /* flat icon chip — no left-rounding */
    .social-banner__icon-wrap {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: transparent;
        box-shadow: none !important;
    }

    .social-banner__icon-wrap svg {
        width: 22px;
        height: 22px;
        opacity: .80;
    }

    /* colour-tinted glow on icon colour when active */
    .social-banner__item:active .social-banner__icon-wrap {
        background: color-mix(in srgb, var(--clr) 18%, transparent);
        transform: scale(.88);
        transition: transform .1s ease, background .1s ease;
    }

    .social-banner__item:active .social-banner__icon-wrap svg {
        opacity: 1;
        transform: scale(1);
    }

    /* slide-up entrance on mobile */
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateY(40px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ── tiny phones: shrink icons a bit more ── */
@media (max-width: 380px) {
    .social-banner__icon-wrap {
        width: 32px;
        height: 32px;
    }

    .social-banner__icon-wrap svg {
        width: 18px;
        height: 18px;
    }
}