/* Custom CSS */
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #00ffcc;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
    text-align: center;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body::before,
body::after {
    content: '';
    flex: 1;
    min-height: 20px;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Base element sizing limiting for the unboxed layout */
.profile-img-container,
.name,
.title,
.bio,
.social-links {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-img-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff00cc, #3333ff, #00ffcc, #ff00cc);
    background-size: 400%;
    border-radius: 50%;
    z-index: 1;
    filter: blur(15px);
    -webkit-filter: blur(15px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    opacity: 0.6;
    animation: animateGlow 15s ease infinite;
}

@keyframes animateGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.title {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.social-links.list-view,
.social-links.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* Reduced from 24px */
    width: 100%;
}

.social-list-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.social-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--brand-color);
    opacity: 0.1;
    transition: width 0.4s ease;
    z-index: 0;
}

.social-list-item:hover {
    border-color: var(--brand-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-list-item:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s;
}

.social-list-item:hover::before {
    width: 100%;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-color);
    font-size: 1.2rem;
    margin-right: 15px;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-list-item:hover .icon-wrapper {
    background: var(--brand-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1;
}

.social-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.social-username {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 40px 20px;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-color);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--card-border);
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
}

.btn-primary,
.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary {
    color: #fff;
    margin-bottom: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }

    .name {
        font-size: 1.7rem;
    }

    .icon-wrapper {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .social-label {
        font-size: 0.95rem;
    }
}

/* =========================================
   NATIVE PLATFORM MODAL STYLES
   ========================================= */

.native-modal {
    padding: 0;
    overflow: hidden;
    text-align: left;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.native-modal .close-btn {
    z-index: 10;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    line-height: 1;
}

.native-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: filter 0.2s;
}

.native-btn:hover {
    filter: brightness(1.1);
}

/* GitHub Modal */
.github-modal {
    background-color: #0d1117;
    border: 1px solid #30363d;
    padding-bottom: 20px;
}

.gh-header {
    display: flex;
    align-items: center;
    padding: 30px 20px 15px;
    gap: 15px;
}

.gh-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #161b22;
    border: 1px solid #30363d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #c9d1d9;
}

.gh-names h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #c9d1d9;
}

.gh-names p {
    font-size: 1.1rem;
    color: #8b949e;
    margin: 0;
    font-weight: 300;
}

.gh-bio {
    padding: 0 20px;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.gh-details {
    margin: 10px 0;
    color: #8b949e;
}

.gh-details span {
    margin-right: 15px;
}

.gh-details b {
    color: #c9d1d9;
    font-weight: 600;
}

.gh-details-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.gh-tabs {
    display: flex;
    border-bottom: 1px solid #30363d;
    padding: 0 10px;
    gap: 20px;
    overflow-x: auto;
}

.gh-tabs .tab {
    padding: 10px 5px;
    color: #8b949e;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

.gh-tabs .tab.active {
    color: #c9d1d9;
    font-weight: 600;
}

.gh-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f78166;
    border-radius: 2px;
}

.gh-tabs .badge {
    background: #30363d;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.gh-btn {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    width: calc(100% - 40px);
    margin: 20px auto 0;
}

/* Instagram Modal */
.instagram-modal {
    background-color: #000000;
    border: 1px solid #262626;
    border-radius: 20px;
}

.ig-topbar {
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    border-bottom: 1px solid #262626;
    font-size: 1rem;
}

.ig-header {
    display: flex;
    align-items: center;
    padding: 20px 15px 15px;
    gap: 20px;
}

.ig-avatar-ring {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ig-avatar {
    width: 77px;
    height: 77px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    position: relative;
}

.ig-stats {
    display: flex;
    justify-content: space-around;
    flex: 1;
}

.ig-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ig-stats b {
    font-size: 1.1rem;
}

.ig-stats span {
    font-size: 0.8rem;
    color: #a8a8a8;
}

.ig-bio {
    padding: 0 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ig-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
}

.ig-btn-primary,
.ig-btn-secondary {
    margin-top: 0;
    padding: 8px;
    font-size: 0.9rem;
}

.ig-btn-primary {
    background: #0095f6;
    color: #fff;
}

.ig-btn-secondary {
    background: #262626;
    color: #fff;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 10px;
}

.ig-grid .grid-item {
    aspect-ratio: 1;
    background: #262626;
}

/* Facebook Modal */
.facebook-modal {
    background-color: #242526;
    border: 1px solid #3e4042;
}

.fb-cover {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #3e4042;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.fb-profile-section {
    position: relative;
    padding: 0 15px;
    text-align: center;
    margin-top: -65px;
}

.fb-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #242526;
    background: #3e4042;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    position: relative;
}

.online-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #31a24c;
    border: 3px solid #242526;
    border-radius: 50%;
}

.fb-name {
    margin-top: 10px;
}

.fb-name h2 {
    margin: 0;
    font-size: 1.6rem;
}

.fb-name p {
    color: #b0b3b8;
    font-size: 0.95rem;
    margin: 5px 0 0;
    font-weight: 500;
}

.fb-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
}

.fb-btn-primary,
.fb-btn-secondary {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fb-btn-primary {
    background: #2374e1;
    color: #fff;
    flex: 2;
}

.fb-btn-secondary {
    background: #3a3b3c;
    color: #e4e6eb;
    flex: 1;
}

.fb-intro {
    padding: 15px;
    border-top: 10px solid #18191a;
}

.fb-intro h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.fb-bio-text {
    text-align: center;
    color: #e4e6eb;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.fb-intro hr {
    border: 0;
    border-top: 1px solid #3e4042;
    margin: 15px 0;
}

.fb-detail {
    color: #e4e6eb;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-detail i {
    color: #8c939d;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* LinkedIn Modal */
.linkedin-modal {
    background-color: #1d2226;
    border: 1px solid #38434f;
}

.li-cover {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #38434f;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.li-profile-section {
    padding: 0 20px 10px;
    margin-top: -50px;
    position: relative;
}

.li-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #1d2226;
    background: #38434f;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.li-info h2 {
    margin: 0;
    font-size: 1.4rem;
}

.li-headline {
    color: #e9e5df;
    font-size: 0.95rem;
    margin: 5px 0;
}

.li-location {
    color: #8f959e;
    font-size: 0.85rem;
    margin: 0;
}

.li-location a {
    color: #70b5f9;
    text-decoration: none;
    font-weight: 600;
}

.li-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 15px;
}

.li-btn-primary,
.li-btn-secondary {
    margin-top: 0;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.li-btn-primary {
    background: #70b5f9;
    color: #000;
    flex: 1;
}

.li-btn-secondary {
    background: transparent;
    color: #e9e5df;
    border: 1px solid #e9e5df;
    flex: 1;
}

.li-about {
    padding: 15px 20px;
    border-top: 8px solid #000;
}

.li-about h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.li-about p {
    color: #e9e5df;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* WhatsApp & Telegram Modals */
.whatsapp-modal {
    background: #0b141a;
    border: 1px solid #202c33;
    padding-bottom: 20px;
}

.wa-header {
    background: #202c33;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667781;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wa-info {
    flex: 1;
}

.wa-info h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #e9edef;
}

.wa-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #8696a0;
}

.wa-actions {
    margin-left: auto;
    color: #e9edef;
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

.wa-chat-bg {
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: contain;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wa-date {
    background: #182229;
    color: #8696a0;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 10px;
    align-self: center;
}

.wa-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    color: #e9edef;
}

.wa-bubble.incoming {
    background: #202c33;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-bubble.outgoing {
    background: #005c4b;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    float: right;
    margin: 8px 0 -5px 10px;
}

.chat-action-wrapper {
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin-top: 10px;
}

.wa-btn {
    background: #00a884;
    color: #111b21;
    margin-top: 0;
    border-radius: 24px;
}

/* Telegram */
.telegram-modal {
    background: #0e1621;
    border: 1px solid #17212b;
    padding-bottom: 20px;
}

.tg-header {
    background: #17212b;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.tg-info {
    flex: 1;
}

.tg-info h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.tg-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #5288c1;
}

.tg-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2b5278;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.tg-chat-bg {
    background: #182533;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-date {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 12px;
    align-self: center;
    display: inline-block;
    margin-bottom: 10px;
}

.tg-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    color: #fff;
}

.tg-bubble.incoming {
    background: #182533;
    border: 1px solid #2b5278;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.tg-bubble.outgoing {
    background: #2b5278;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.tg-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    float: right;
    margin: 6px 0 -5px 12px;
}

.tg-btn {
    background: #2b5278;
    color: #fff;
    margin-top: 10px;
}