/* ==================================== */
/* 1. EASY CUSTOMIZATION: CSS VARIABLES (UNCHANGED) */
/* ==================================== */

:root {
    /* --- DAY MODE COLORS --- */
    --background-color: #f7f7f7; 
    --text-color: #1a1a1a;       
    --accent-color: #8b0000;     
    --photo-border-color: #ccc;  
    --dropdown-bg-color: #fff;
    --dropdown-border-color: #ddd;

    /* --- FONT STYLES --- */
    --heading-font: 'Helvetica Neue', sans-serif; 
    --body-font: 'Arial', sans-serif;          
    
    /* --- ARTIST PHOTO SETTINGS --- */
    --photo-size: 250px;
}

/* --- NIGHT MODE OVERRIDES (UNCHANGED) --- */
.night-mode {
    --background-color: #1a1a1a; 
    --text-color: #f7f7f7;       
    --accent-color: #ffd700;     
    --photo-border-color: #555;  
    --dropdown-bg-color: #222;
    --dropdown-border-color: #444;
}


/* ==================================== */
/* 2. BASE STYLES & LAYOUT (UNCHANGED) */
/* ==================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.artist-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artist-name {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    letter-spacing: 0.2rem;
    margin-top: 20px;
    font-weight: 300;
}

.artist-photo-container {
    width: var(--photo-size);
    height: var(--photo-size);
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--photo-border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==================================== */
/* 3. HEADER & DROPDOWN MENU (CLEANUP) */
/* ==================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    /* Use space-between to push the empty div and the menu-container to the edges */
    justify-content: space-between; 
    align-items: center;
    z-index: 100;
}

/* --- Icon Grouping --- */
.menu-container {
    position: relative; 
    display: flex;
    align-items: center;
}

/* Add some space between the mode toggle and the burger icon */
#mode-toggle {
    margin-right: 5px; 
}

/* --- BUTTON/ICON STYLING (UNCHANGED) --- */
button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
    transition: color 0.3s;
}

button:hover {
    color: var(--accent-color);
}

/* --- DROPDOWN MENU STYLES (UNCHANGED) --- */
#main-menu {
    position: absolute;
    top: 100%; 
    /* Now align the right edge of the menu with the right edge of the container */
    right: 0; 
    background-color: var(--dropdown-bg-color);
    border: 1px solid var(--dropdown-border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    width: 150px; 
    z-index: 90;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

#main-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#main-menu ul {
    list-style: none;
    padding: 10px 0;
}

#main-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-family: var(--body-font);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: right;
    transition: background-color 0.2s, color 0.2s;
}

#main-menu a:hover {
    background-color: var(--photo-border-color); 
    color: var(--accent-color);
}

/* ==================================== */
/* 4. BIO PAGE SPECIFIC STYLES (NEW SECTION) */
/* ==================================== */

.bio-page {
    /* Override main alignment for regular content pages */
    align-items: flex-start; 
    padding-top: 100px; /* Space below fixed header */
}

.bio-content-wrapper {
    width: 90%;
    max-width: 900px; /* Max width for readability */
    margin: 0 auto;
    padding-bottom: 50px;
}

/* --- Titles --- */
.bio-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    letter-spacing: 0.15rem;
    font-weight: 300;
    margin-bottom: 30px;
    padding-top: 10px; /* Aesthetic spacing */
    border-bottom: 1px solid var(--photo-border-color);
}

.gallery-heading {
    font-family: var(--body-font);
    font-size: 1.8rem;
    font-weight: 400;
    margin: 40px 0 20px 0;
    color: var(--accent-color);
}

/* --- Bio Text --- */
.bio-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}


/* --- Gallery Layout (Easy to Add/Remove Images) --- */
.bio-gallery {
    display: grid;
    /* Create a responsive grid: 3 columns on large screens, 
       1 or 2 on small screens. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    /* Optional: Add a subtle border/shadow */
    border: 1px solid var(--photo-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}

/* ==================================== */
/* 5. NAVIGATION & UTILITY BUTTONS (NEW SECTION) */
/* ==================================== */

.back-link {
    /* Inherit button styles, but override padding/font size */
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none; /* If using an anchor tag later */
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    background-color: var(--accent-color);
    color: var(--background-color); /* Contrast for hover */
    border-color: var(--accent-color);
}

/* ==================================== */
/* 6. PORTFOLIO PAGE SPECIFIC STYLES (UPDATED FOR SLIDER) */
/* ==================================== */

.portfolio-page {
    /* Same layout properties as bio-page */
    align-items: flex-start; 
    padding-top: 100px; 
}

.portfolio-content-wrapper {
    width: 90%;
    max-width: 1000px; 
    margin: 0 auto;
    padding-bottom: 50px;
    text-align: center;
}

.portfolio-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    letter-spacing: 0.15rem;
    font-weight: 300;
    margin-bottom: 40px;
    padding-top: 10px; 
}

/* --- SLIDER CORE STYLES --- */
.slider-container {
/*    position: relative; */
    overflow: hidden; /* CRITICAL: Hides the slides that are off-screen */
    width: 100%;
}

.slider-track {
    display: flex; /* CRITICAL: Lays slides out horizontally */
    width: max-content; /* Allows all slides to be on one line */
    transition: transform 0.4s ease-in-out; /* Smooth sliding animation */
}

.project-slide {
    flex-shrink: 0; /* Prevents slides from shrinking */
    width: 1000px; /* Must match the max-width of the content wrapper */
    display: flex;
    text-align: left;
    gap: 40px;
}

/* Make slide responsive on smaller screens */
@media (max-width: 800px) {
    .project-slide {
        flex-direction: column; /* Stacks image and details vertically */
        gap: 20px;
        width: 100vw; /* Use full viewport width */
    }
    .portfolio-content-wrapper {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
    }
    .project-slide {
        width: 90vw; /* Adjust for padding on small screens */
    }
}


/* --- PROJECT CONTENT STYLES --- */
.project-image {
    flex: 1 1 50%; /* Image takes 50% of the space */
    max-width: 50%; 
    height: 500px; /* Fixed height for consistency */
    overflow: hidden;
    border: 1px solid var(--photo-border-color);
}
@media (max-width: 800px) {
    .project-image {
        max-width: 100%; 
        height: auto;
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    display: block;
}

.project-details {
    flex: 1 1 50%; /* Details take 50% of the space */
    padding-top: 20px;
}
@media (max-width: 800px) {
    .project-details {
        padding-top: 0;
    }
}


.project-heading {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.project-meta {
    font-family: var(--body-font);
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 25px;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* --- NAVIGATION BUTTONS --- */
.slide-button {
/*    position: absolute; */
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--background-color);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
/*    z-index: 20; */
    z-index: 100;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.slide-button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.7);
}

.slide-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev-button {
    left: 0; 
    border-radius: 0 5px 5px 0;
}

.next-button {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* ==================================== */
/* 7. CONTACT PAGE SPECIFIC STYLES (NEW SECTION) */
/* ==================================== */

.contact-page {
    /* Same layout properties as bio/portfolio page */
    align-items: flex-start; 
    padding-top: 100px; 
}

.contact-content-wrapper {
    width: 90%;
    max-width: 650px; /* Narrower width for form readability */
    margin: 0 auto;
    padding-bottom: 50px;
    text-align: center;
}

.contact-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    letter-spacing: 0.15rem;
    font-weight: 300;
    margin-bottom: 20px;
    padding-top: 10px; 
}

.contact-intro {
    font-family: var(--body-font);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- Form Styling --- */
.contact-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 15px;
    background-color: var(--dropdown-bg-color);
    padding: 30px;
    border: 1px solid var(--photo-border-color);
}

.contact-form label {
    font-family: var(--body-font);
    font-weight: 600;
    margin-bottom: -10px;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--photo-border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Submit Button --- */
.submit-button {
    background-color: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: 15px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: bold;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button:hover {
    opacity: 0.8;
}

/* --- Direct Contact Section --- */
.direct-contact {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--photo-border-color);
}

.direct-contact h2 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.direct-contact p {
    font-family: var(--body-font);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.direct-contact a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.direct-contact a:hover {
    color: var(--text-color);
}

/* --- New CSS for the Artist Name Link ---
*/
.artist-name-link {
    /* Style the text and link appearance */
    font-size: 1.5rem; /* Make it prominent */
    font-weight: bold;
    text-decoration: none; /* Remove underline */
    color: var(--primary-color); /* Use a variable or fixed color that stands out */
    
    /* Ensure it appears on the far left */
    margin-right: auto; /* This can also help push other elements to the right */
}

/* --- If you want it to look different in Night Mode ---
*/
.night-mode .artist-name-link {
    color: var(--night-mode-primary-color); /* Or just white/light gray */
}



/* ==================================== */
/* 8. VERSION SWITCH LINK STYLES */
/* ==================================== */

.version-link-container {
    /* Center the container within the page content area */
    width: 90%;
    max-width: 1200px; 
    margin: 40px auto 20px auto; 
    text-align: center;
}

.version-link {
    /* Style the link discretely */
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    
    /* Use accent color for visibility, but keep it subtle */
    color: var(--accent-color);
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.version-link:hover {
    opacity: 1;
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- NEW: Sub-Title Style --- */
.artist-sub-title {
    font-family: var(--body-font); /* Use the body font for a subtle contrast */
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    margin-top: -5px; /* Pull it closer to the H1 */
    margin-bottom: 20px; /* Space it from any following content */
    font-weight: 400;
    opacity: 0.7; /* Make it slightly lighter than the main text */
    color: var(--text-color);
}

/* Adjust the margin of the main artist-name slightly */
.artist-name {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    letter-spacing: 0.2rem;
    /* Reduced margin-top slightly to make the overall block look tight */
    margin-top: 15px; 
    font-weight: 300;
}

/* --- Home Page Link Wrapper Styling --- */
.home-link-wrapper {
    /* Critical: Remove the default anchor text decoration */
    text-decoration: none; 
    
    /* Ensure the link takes up the full space of its content */
    display: inline-block; 
    
    /* Change the cursor to indicate the entire area is clickable */
    cursor: pointer; 
    
    /* Add a transition for a subtle interactive effect */
    transition: opacity 0.3s, transform 0.3s;
}

/* Optional: Add a subtle hover effect */
.home-link-wrapper:hover {
    opacity: 0.9;
    transform: scale(1.01); /* Subtle movement */
}

/* Ensure text color is inherited/not overridden by the link */
.home-link-wrapper .artist-name,
.home-link-wrapper .artist-sub-title {
    color: var(--text-color);
    transition: color 0.3s;
}

/* Optional: Change name/title color on hover for feedback */
.home-link-wrapper:hover .artist-name,
.home-link-wrapper:hover .artist-sub-title {
    color: var(--accent-color);
}

/* --- NEW: Social Media Links --- */

.social-links-container {
    /* Positioning: Center the block at the bottom of the viewport area */
    width: 100%;
    text-align: center;
    padding: 30px 0; 
    
    /* Ensure it sticks to the bottom if the main content is short */
    margin-top: auto; 
    
    /* Optional: Add a subtle border/line above it */
    border-top: 1px solid var(--photo-border-color);
}

.social-links-container a {
    /* Style the links themselves */
    font-size: 1.8rem;
    color: var(--text-color); /* Inherit main text color */
    text-decoration: none;
    margin: 0 15px; /* Spacing between icons */
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.social-links-container a:hover {
    /* Highlight effect on hover */
    color: var(--accent-color); /* Use the accent color for a pop */
    transform: translateY(-3px); /* Subtle lift effect */
}
