/* --- BRUTALIST & MINIMALIST STYLES --- */
        
:root {
    --color-black: #0A0A0A;
    --color-white: #FFFFFF;
    --color-gray: #CCCCCC;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Monospace';
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-black);
    z-index: 1000;
}

.logo {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav a {
    font-family: var(--font-sans);
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-black);
    margin-left: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    border-bottom: 2px solid var(--color-black);
}

/* --- GENERAL LAYOUT & SECTIONS --- */
section {
    padding: 80px 40px;
    min-height: 50vh;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 50px;
    text-align: center;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 10px;
    display: inline-block;
}

/* --- 1. HERO SECTION (Text OVER Carousel) --- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-black); 
    color: var(--color-white);
    text-align: center;
    padding: 100px 40px 0; /* Adjust padding for fixed header */
    position: relative; 
    overflow: hidden; 
    z-index: 1; /* Establishes stacking context */
}

/* Ensure hero text is on top and clearly visible */
#hero h1, #hero p {
    position: relative;
    z-index: 10; /* Higher than carousel */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9); /* Subtle shadow for text pop, acceptable here */
}

#hero h1 {
    font-size: 5vw;
    font-weight: 700;
    letter-spacing: -2px;
}

#hero p {
    font-size: 18px;
    font-family: var(--font-sans);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 4px;
    background-color: rgba(0, 0, 0, 0.2); /* Very subtle background for text clarity */
    padding: 5px 15px;
}

/* --- CAROUSEL STYLES (Background Element) --- */
.carousel-container {
    /* Set carousel to cover the entire hero section */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Lower than text (z-index: 10) */
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7); /* B&W and slightly dimmed for text contrast */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    font-family: var(--font-mono);
    user-select: none;
    transition: background-color 0.2s, color 0.2s;
    z-index: 3; /* Above carousel images, still below text */
}

.carousel-button:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}


/* --- 2. WORK SECTION (Brutalist Grid) --- */
#work {
    border-top: 4px solid var(--color-black); 
    padding-bottom: 0;
    text-align: center;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border-left: 2px solid var(--color-gray);
    border-top: 2px solid var(--color-gray);
}

.project-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-right: 2px solid var(--color-gray);
    border-bottom: 2px solid var(--color-gray);
}

.project-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: opacity 0.3s, transform 0.5s;
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.project-tile:hover .project-info {
    opacity: 1;
}

.project-info h3 {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.project-info p {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
}

/* --- 3. ABOUT SECTION (Now includes Contact Info) --- */
#about {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 4px solid var(--color-black);
}

.about-photo {
    flex-shrink: 0;
    width: 250px;
    height: 300px;
    background-color: var(--color-gray);
    border: 5px solid var(--color-black);
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.about-content {
    flex-grow: 1;
}

.about-content h2 {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 10px;
    display: inline-block;
    font-family: var(--font-sans);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
}


/* --- FOOTER --- */
footer {
    padding: 20px 40px;
    text-align: center;
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    border-top: 2px solid var(--color-black);
}

footer a {
    color: var(--color-black);
    text-decoration: none;
    margin: 0 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    nav a {
        margin-left: 10px;
    }
    #hero h1 {
        font-size: 8vw;
    }
    #about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-content {
        text-align: center;
    }
    .about-content h2.section-title {
        text-align: center;
        display: block;
        margin: 0 auto 20px auto;
    }
    /* Hide buttons on tiny screens if they clutter the hero text too much */
    .carousel-button {
        display: none;
    }
}