/* =========================================
   1. GLOBAL PAGE STYLES
========================================= */
html {
    scroll-behavior: smooth;
    height: 100%; 
}

body {
    margin: 0;
    
    /* Background Setup */
    background-color: #f4f4f4; 
    background-image: url('background-frame.jpg'); /* Make sure this file exists! */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: multiply; /* Blends the white parts of the JPG */
    
    font-family: 'Courier New', Courier, monospace;
    cursor: crosshair;
    overflow-x: hidden;
    position: relative; 
    min-height: 100%; 
}

/* =========================================
   2. PATTERN COLUMNS
========================================= */
.pattern-column {
    position: absolute; 
    top: 0;
    height: 100%; 
    overflow: hidden; /* Clips the bottom at footer */
    
    /* Wide container allows labels to pop out, but invisible itself */
    width: 250px; 
    
    display: flex;
    flex-direction: column;
    gap: 0; 
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none; 
    z-index: 10;
}

/* Ghost element for the border line */
.pattern-column::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 75px; /* Matches icon width */
    pointer-events: none;
    z-index: -1;
}

/* Left Column Specifics */
.left-col {
    left: 0; 
    align-items: flex-start; 
}
.left-col::before {
    left: 0;
    border-right: 1px solid rgba(62, 39, 35, 0.1); 
}

/* Right Column Specifics */
.right-col {
    right: 0; 
    align-items: flex-end; 
}
.right-col::before {
    right: 0;
    border-left: 1px solid rgba(62, 39, 35, 0.1);
}

/* --- ITEM WRAPPER --- */
.pattern-item {
    position: relative; 
    pointer-events: auto; /* Re-enable mouse events */
    width: 75px; 
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
}

/* --- THE ICON --- */
.pattern-icon {
    width: 100%; 
    height: auto;
    display: block; 
    opacity: 0.9;
    filter: sepia(0.3); 
    transition: transform 0.3s ease;
}

.pattern-item:hover .pattern-icon {
    transform: scale(1.1) rotate(5deg);
    z-index: 20; 
}

/* --- THE POP-OUT LABEL --- */
.pattern-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background-color: #3e2723; 
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 30;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

.pattern-item:hover .pattern-label {
    opacity: 1;
    visibility: visible;
}

/* Directional Labels */
.left-col .pattern-label { left: 85px; }
.right-col .pattern-label { right: 85px; }

/* =========================================
   3. MINIMALIST NAV (CENTERED)
========================================= */
.simple-nav {
    position: absolute;
    top: 60px; 
    
    /* Center Alignment */
    left: 50%; 
    transform: translateX(-50%);
    
    display: flex;
    flex-direction: row; 
    gap: 40px; 
    z-index: 100;
}

.simple-nav a {
    text-decoration: none;
    color: #3e2723; 
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: lowercase; 
    transition: color 0.2s, transform 0.2s;
}

.simple-nav a:hover {
    color: #8d6e63;
    transform: translateY(-3px); 
}

/* =========================================
   4. SECTIONS & CONTENT (CENTERED)
========================================= */
section {
    min-height: 100vh;
    
    /* Balanced Padding */
    padding-left: 100px; 
    padding-right: 100px;
    
    padding-top: 180px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    
    /* Center Alignment */
    justify-content: flex-start; 
    align-items: center; 
    text-align: center; 
}

h1 { 
    font-size: 3.5rem; 
    color: #3e2723; 
    margin: 0 0 20px 0;
    text-transform: lowercase; 
}

p { 
    font-size: 1.3rem; 
    color: #5d4037; 
    max-width: 650px; 
    line-height: 1.6; 
    margin-bottom: 15px;
}

/* =========================================
   5. EXTRAS
========================================= */
.social-icons img:hover { transform: scale(1.1) rotate(5deg); }
.content-link { text-decoration: none; display: block; margin-top: 40px; max-width: 600px; }
.meta-text { display: block; font-size: 0.9rem; color: #888; margin-bottom: 8px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.link-title { font-size: 2rem; color: #3e2723; font-weight: bold; line-height: 1.2; transition: background-color 0.2s ease; display: inline; }
.link-desc { display: block; font-size: 1.1rem; color: #666; margin-top: 15px; line-height: 1.4; }
.content-link:hover .link-title { background-color: #ffcce0; }

.profile-box { 
    width: 300px; 
    height: 300px; 
    border: 3px solid #3e2723; 
    margin-top: 10px; 
    margin-bottom: 30px; 
    overflow: hidden; 
    background-color: white; 
    border-radius: 50%; 
}
.profile-image { width: 100%; height: 100%; object-fit: cover; }

footer {
    background-color: #3e2723; 
    color: white;              
    width: 100%;
    height: 80px;              
    display: flex;            
    justify-content: space-between; 
    align-items: center;       
    padding: 0 100px; 
    box-sizing: border-box;    
    position: relative;
    z-index: 100;              
}
.footer-text { font-size: 1rem; font-weight: bold; }
.footer-icons { display: flex; gap: 20px; align-items: center; }
.footer-icons img { width: 30px; height: auto; filter: invert(1); transition: transform 0.2s ease; }
.footer-icons img:hover { transform: scale(1.2); }

@media (max-width: 900px) {
    .pattern-column { display: none; } 
    .simple-nav { 
        position: relative; 
        top: 0; left: 0; 
        transform: none; 
        flex-direction: row; 
        justify-content: center; 
        padding: 20px; 
        background: #f4f4f4; 
        border-bottom: 2px solid #3e2723; 
        width: 100%; 
        gap: 20px; 
    }
    section { padding: 40px 20px; align-items: center; text-align: center; }
    h1 { font-size: 2.5rem; }
    .profile-box { width: 200px; height: 200px; }
    footer { padding: 0 20px; }
}