/* --- COLOR VARIABLES --- */
:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #444444;
    --text-muted: #666666;
    --icon-bg: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f0f0f;       
        --text-primary: #ffffff;   
        --text-secondary: #dddddd; 
        --text-muted: #aaaaaa; 
        --icon-bg: #1e1e1e;
        --shadow-color: rgba(0, 0, 0, 0.6);
    }
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color); 
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column; 
    overflow-x: hidden;
}

/* --- MAIN LAYOUT CONTAINER --- */
.main-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1400px; 
    gap: 50px; 
}

#image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.responsive-image {
    width: 320px; 
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.responsive-image:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* --- TEXT CONTENT --- */
#text-section {
    max-width: 600px; /* Restored to original narrow width for organization */
}

#text-section h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem); 
    font-weight: 800;
    margin-bottom: 0px;
    color: var(--text-primary);
    letter-spacing: -3px;
    line-height: 1;
}

.real-name {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 5px;
    margin-bottom: 10px;
}

.job-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 25px;
}

#text-section p.description {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
}

/* --- SOCIAL ICONS --- */
.social-links {
    display: flex;       
    gap: 20px;           
    margin-top: 30px;    
    justify-content: center; 
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f5f5f5; 
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.social-icon:hover {
    background-color: #000;
    transform: translateY(-5px);
}

.icons {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.social-icon:hover .icons {
    filter: invert(1);
}

/* --- NEIGHBOUR SECTION --- */
#neighbor-wrapper {
    width: 100%;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    
    /* NEW: Ensures the content inside centers relative to the screen */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

#neighbor, #neighbors {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the CPU and text row */
    gap: 20px;
    width: 100%;
    
}

.neighbor-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: #b0b0b0; 
    transition: color 0.3s ease;
    text-align: center; /* Always centers the text lines */
}
#neighbors{
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
}
#btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

#btn img {
    border: none;
    display: block;
    image-rendering: pixelated;
}

.pixel-line {
    border: none;
    border-top: 1px dashed #555;
    width: 100%;
    margin: 20px 0;
    opacity: 0.5;
}

/* --- DESKTOP VIEW --- */
@media (min-width: 1024px) {
    .main-container {
        flex-direction: row;      
        text-align: left;         
        justify-content: center;  
        gap: 200px; 
    }

    .responsive-image {
        width: 650px; 
        height: 650px;
    }

    #text-section {
        text-align: left;
    }
    


    .social-links, #neighbor, #neighbors {
        justify-content: flex-start;
    }

    .neighbor-text {
        text-align: left;
    }

    .footer-note {
        position: fixed;
        bottom: 10px;
        left: 0;
        right: 0;
        padding: 0;
        margin-top: 0;
    }
}

/* --- FOOTER (RESTORED COLORS) --- */
.footer-note {
    width: 100%;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 20px;
    flex-shrink: 0;
    margin-top: auto; 
    color: #b0b0b0; 
}

.footer-note a {
    color: inherit; /* FIXED: Keeps "here" the same color as the text */
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .footer-note {
        color: #333333; 
    }
}




/* --- ARROW STYLING --- */
.toggle-trigger {
    margin-top: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center; /* Center on mobile */
    user-select: none;
}

@media (min-width: 1024px) {
    .toggle-trigger { 
        justify-content: flex-start; /* Aligns with Decyphr text on desktop */
    } 
}

.arrow-icon {
    width: 30px;
    /* Added a slight bounce to the timing function */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Rotates arrow when active */
.arrow-icon.active {
    transform: rotate(180deg);
}

/* --- SMOOTH TRANSITION WRAPPER --- */
#neighbor-wrapper {
    width: 100%;
    overflow: hidden;
    /* max-height must be used for the slide effect */
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* Hidden State */
#neighbor-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Expanded State */
#neighbor-wrapper.expanded {
    max-height: 1200px; /* High enough to fit all content */
    opacity: 1;
    pointer-events: auto;
}



