/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(240,247,255,1) 70%, rgba(228,240,255,1) 100%);
    /* Changed from hidden to allow natural scrolling when content overflows */
    overflow-x: hidden; 
    overflow-y: auto;
    position: relative;
    padding: 40px 20px;
}

/* Background Canvas Layout */
#bgCanvas {
    position: fixed; /* Fixed ensures it stays locked to the screen dimensions even when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Content Container */
.profile-container {
    position: relative;
    z-index: 2;
    /* Uses dynamic viewport width sizing with a max-cap for ultra-wide monitors */
    width: 100%;
    max-width: 780px; 
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 4vw, 35px); /* Dynamically scales gaps based on screen size */
}

/* Avatar Styling */
.avatar-wrapper {
    position: relative;
    /* Scales avatar size dynamically between 160px and 240px depending on display width */
    width: clamp(160px, 25vw, 240px);
    height: clamp(160px, 25vw, 240px);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px dashed rgba(165, 201, 235, 0.6);
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Dynamic Typography Styling */
.bio-text {
    /* Fluid typography: auto-calculates ideal text sizing across mobile up to 4K displays */
    font-size: clamp(1.25rem, 2.5vw, 1.85rem);
    line-height: 1.6;
    color: #4a6b82; 
    font-weight: 400;
}

.highlight-dark {
    color: #0d2c47; 
    font-weight: 700;
}

.italic-dark {
    color: #0d2c47;
    font-style: italic;
    font-family: 'DM Sans', sans-serif;
}

/* Button Layout & Styling */
.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
}

.btn {
    font-family: 'Courier Prime', monospace;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Palette Button Themes */
.btn-linkedin { background-color: #e2f0d9; color: #557a46; }
.btn-bluesky { background-color: #e1f0fa; color: #43769c; }
.btn-instagram { background-color: #f0e1f7; color: #7b5294; }
.btn-email { background-color: #fbeadb; color: #9c6c43; }

/* Clean Mobile Stack fallback rules */
@media (max-width: 480px) {
    .links-container {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        justify-content: center;
        width: 100%;
    }
}
    /* Inline Bluesky SVG Icon Sizing */
.bluesky-icon {
    width: 1rem;
    height: 1rem;
    fill: #43769c; /* Matches the text color of the Bluesky button */
    display: inline-block;
    vertical-align: middle;
}

/* GitHub Button Color Theme (Replaced Instagram) */
.btn-github {
    background-color: #e6e9ed;
    color: #24292e;
}

