/* --- Global Resets & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* --- Sidebar Fixed Navigation --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    padding: 60px 40px;
    background-color: #ffffff;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-item, .nav-label, .sub-item {
    font-size: 14px;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: #000000;
    line-height: 2.2;
    display: block;
    cursor: pointer;
    transition: font-weight 0.15s ease;
}

/* Spacer to separate name from the rest of the menu */
.nav-spacer {
    height: 35px;
}

/* Hover & Active States turn to Bold Helvetica */
.nav-item:hover, 
.nav-item.active,
.sub-item:hover {
    font-weight: bold;
}

/* Submenu Structure for Tattoo */
.nav-group {
    width: 100%;
}
.nav-label {
    cursor: default;
}
.sub-menu {
    padding-left: 15px;
    display: flex;
    flex-direction: column;
}
.sub-item {
    font-size: 13px;
    line-height: 1.8;
}

/* --- Main Content Display Layout --- */
.content-container {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    position: relative;
    padding: 60px;
}

/* --- Smooth Transition Engine --- */
.view-section {
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.view-section.active {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Home: Centered Image Styles --- */
.centered-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    width: 100%;
}

.featured-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

/* --- Work: Premium Grid Layout --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.grid-item {
    width: 100%;
    background-color: #fafafa;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.grid-item img:hover {
    opacity: 0.85;
}

/* Catalogue Link Styles */
.catalogue-wrapper {
    margin-top: 60px;
    padding-bottom: 40px;
    text-align: left;
}

.catalogue-link {
    font-size: 14px;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.catalogue-link:hover {
    opacity: 0.6;
}

/* --- Text Views (About, CV, Contact) --- */
.text-content {
    max-width: 600px;
    font-size: 15px;
    line-height: 1.6;
}

.text-content h2 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cv-list {
    list-style: none;
}

.cv-list li {
    margin-bottom: 12px;
}

.contact-details a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 20px 20px 20px;
    }
    
    .content-container {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    
    .view-section {
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
    }
    
    .view-section.active {
        position: relative;
    }

    .centered-image-wrapper {
        min-height: 50vh;
    }
}