/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body, html {
    height: 100vh;
    margin: 0;
    overflow-y: auto; 
    overflow-x: hidden;
    background-color: transparent; /* Allows WebGL to show through */
    color: #ffffff;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Fix the WebGL Canvas to the background */
#glcanvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Allows clicking through to links */
}

/* Main Profile Wrapper */
.profile-container {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 60px auto;
    padding: 0 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* NOTE: The glass background has been completely removed to match your new image */
}

/* Glowing Avatar */
.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.6); /* Solid white border */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); /* White glow effect */
    margin-bottom: 20px;
    background: #1a1a1a; /* Dark background like the image */
}

/* Typography */
.profile-name {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.profile-bio {
    font-size: 0.95rem;
    font-weight: 400;
    color: #cccccc; /* Slightly gray to match the image */
    text-align: center;
    margin-bottom: 40px;
}

/* Links Container */
.links-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* === LINK CARD STYLE === */
.link-card {
    position: relative;
    width: 100%;
    padding: 18px 20px;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-card:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.link-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
}

.link-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(50, 50, 80, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon svg {
    width: 24px;
    height: 24px;
    color: #60a5fa;
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.link-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
    color: #999999;
}

.link-arrow {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.link-arrow svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Loading Animation State */
.link-card.loading .link-content,
.link-card.loading .link-arrow {
    opacity: 0;
}

.link-card.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === DIVIDER SECTION === */
.divider {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 48px 0 32px;
    color: #999999;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15); /* Thin subtle line */
}

.divider span {
    padding: 0 16px;
}

/* === CIRCULAR SOCIAL ICONS === */
.socials-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    width: 48px;
    height: 48px;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.social-btn:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.05); /* Lifts and grows slightly */
}

.social-btn:active {
    transform: scale(0.92); /* Satisfying click effect */
}