/* Social Hub Styles */
#social-hub {
    background: linear-gradient(180deg, rgba(10, 14, 23, 0) 0%, rgba(10, 14, 23, 0.8) 100%);
}

.scanner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.scanner-box {
    width: 250px;
    height: 250px;
    position: relative;
    border: 2px solid var(--accent-neon);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.scanner-box::before,
.scanner-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-neon);
    border-style: solid;
    transition: all 0.3s ease;
}

.scanner-box::before {
    top: 0;
    left: 0;
    border-width: 4px 0 0 4px;
    border-radius: 16px 0 0 0;
}

.scanner-box::after {
    bottom: 0;
    right: 0;
    border-width: 0 4px 4px 0;
    border-radius: 0 0 16px 0;
}

.scanner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Moving Scanner Line */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green), 0 0 30px var(--accent-green);
    animation: scan 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes scan {

    0%,
    100% {
        top: 5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        top: 95%;
    }
}

/* Social Buttons Grid */
.social-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.social-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    /* Sharper edges for tech look */
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    /* For matrix rain */
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
    /* Hacker font */
    letter-spacing: 1px;
}

/* Matrix Rain Effect pseudo-element */
.social-btn::before {
    content: '01011001 0110';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.5s;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.2);
    writing-mode: vertical-rl;
}

.social-btn:hover::before {
    top: 100%;
    opacity: 1;
    transition: top 0.6s linear, opacity 0.1s;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.02);
    padding-left: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    text-shadow: 0 0 8px currentColor;
    /* Glow text */
}

/* Platform Specific Colors & Borders */

/* LinkedIn */
.btn-linkedin {
    border-left: 4px solid #0077b5;
    color: #0077b5;
}

.btn-linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.4);
    border-color: #0077b5;
}

/* WhatsApp */
.btn-whatsapp {
    border-left: 4px solid #25d366;
    color: #25d366;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    border-color: #25d366;
}

/* LinkTree */
.btn-linktree {
    border-left: 4px solid #43e660;
    color: #43e660;
}

.btn-linktree:hover {
    background: rgba(67, 230, 96, 0.1);
    box-shadow: 0 0 20px rgba(67, 230, 96, 0.4);
    border-color: #43e660;
}

/* Google */
.btn-google {
    border-left: 4px solid #4285f4;
    color: #4285f4;
}

.btn-google:hover {
    background: rgba(66, 133, 244, 0.1);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.4);
    border-color: #4285f4;
}

/* Instagram */
.btn-instagram {
    border-left: 4px solid #dc2743;
    color: #e1306c;
    /* Standard Insta Pink/Red */
}

.btn-instagram:hover {
    background: rgba(220, 39, 67, 0.1);
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.4);
    border-color: #dc2743;
}

/* Facebook */
.btn-facebook {
    border-left: 4px solid #1877f2;
    color: #1877f2;
}

.btn-facebook:hover {
    background: rgba(24, 119, 242, 0.1);
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
    border-color: #1877f2;
}

/* Spotlight Button */
.btn-spotlight {
    border: 2px solid #ffd700;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    text-align: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    animation: glow-pulse 2s infinite;
}

.btn-spotlight:hover {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
    padding: 1.2rem 1.5rem;
    /* No offset/slide on spotlight */
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    }
}

/* Instagram Expandable Options */
.insta-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
    margin-top: -5px;
    /* Pull up to connect */
}

.insta-options.open {
    max-height: 150px;
    /* expanded height */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.sub-link {
    display: block;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.sub-link:last-child {
    border-bottom: none;
}

.sub-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-neon);
    padding-left: 1.5rem;
}

/* Footer Note */
.social-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-note-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-note-link:hover {
    color: var(--accent-neon);
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .scanner-box {
        width: 200px;
        height: 200px;
    }
}