:root {
    --bg: #0f0f0f;
    --text: #ffffff;
    --accent: #d4af37; 
    --dim: #777777;
    --border: #222222;
}

* { box-sizing: border-box; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    /* Add this line: */
    scrollbar-gutter: stable; 
}

.main-layout {
    display: flex;
    min-height: 100vh;
    max-width: 1400px; /* Caps the layout width */
    margin: 0 auto; /* Centers the layout on massive screens */
    animation: fadeIn 1s ease-out forwards;
}


.sidebar {
    width: 45%;
    padding: 10vh 5% 5vh 8%;
    border-right: 1px solid var(--border);
}

.sticky-content {
    position: sticky;
    top: 10vh;
}

.hero-name {
    font-weight: 500;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.0;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}


.hero-title {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem; /* Added extra space below the title */
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
}

.image-wrapper {
    margin-top: 0; /* Removed top margin since we added it to the title */
    max-width: 340px; /* Increased from 260px to accommodate the portrait aspect ratio */
}

.profile-img {
    width: 100%;
    aspect-ratio: 4 / 5; /* This creates the slightly shorter portrait crop */
    object-fit: cover; /* This makes sure the image fills the space without squishing */
    border-radius: 2px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.profile-img:hover {
    filter: grayscale(0%);
}

.content-area {
    width: 55%;
    padding: 15vh 10% 10vh 8%;
    display: flex;
    flex-direction: column;
    /* Add these two lines: */
    opacity: 0; /* Starts invisible */
    animation: fadeIn 1s ease-out 0.3s forwards; /* The 0.3s creates the delay */
}


.bio-text {
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 300;
    color: #cccccc;
    max-width: 480px;
}

.bio-text strong {
    font-weight: 500;
    color: var(--text);
}

.social-icons {
    margin-top: 1.5rem; /* Reduced from 4rem */
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.social-icons a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.6rem;
    transition: 0.3s ease;
    opacity: 0.6;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-4px);
}

::selection {
    background-color: var(--accent);
    color: var(--bg);
}

@media (max-width: 900px) {
    .main-layout { flex-direction: column; }
    .sidebar, .content-area { width: 100%; border-right: none; padding: 10% 8%; }
    .hero-name { font-size: 3.5rem; }
    .social-icons { justify-content: flex-start; }
    
    /* This makes it a square ONLY on mobile screens */
    .profile-img {
        aspect-ratio: 1 / 1; 
        object-fit: cover;
        /* Note: If the center square crop cuts off your head, add this line: */
        /* object-position: center 30%; */
    }
}
