/* styles.css */
:root {
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --secondary-text: #666666;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --spacing: 2rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-weight: 300; /* Light, elegant font weight */
}

/* Navigation */
header {
    padding: 3rem var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-color);
}

/* Layout Containers */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing) 4rem;
}

/* Homepage Hero */
.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 70vh;*/
}

.hero-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem 2rem;
}

.art-item {
    display: flex;
    flex-direction: column;
}

.art-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.art-info {
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.art-title {
    color: var(--text-color);
    font-style: italic;
    font-weight: 500;
}

/* CV Layout */
.cv-container {
    max-width: 800px;
    margin: 0 auto;
}

.cv-section {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 150px 1fr; /* Year/Label on left, Content on right */
    gap: 1rem;
}

.cv-header {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0;
}

.cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-list li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-portrait {
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
}

button {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

button:hover {
    background: #444;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.about-image {
    width: 40%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.subtitle {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Exhibition Visuals Styling */
.exhibition-visuals {
    margin-bottom: 4rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
}

.exhibition-visuals h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.exhibition-note {
    color: var(--secondary-text);
    font-style: italic;
    margin-bottom: 2rem;
    margin-top: 0;
}

.visuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.install-shot {
    width: 100%;
    height: 400px; /* Fixed height for neatness */
    object-fit: cover; /* Ensures images fill the box without stretching */
    display: block;
}

/* Mobile adjustments for new pages */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    .about-image {
        width: 100%;
    }
    .visuals-grid {
        grid-template-columns: 1fr;
    }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .cv-section {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
.social-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;           /* Space between the icons */
    margin-top: 3rem;    /* Space between image and icons */
    padding-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-icon {
    width: 24px;         /* Icon size */
    height: 24px;
    fill: var(--text-color); /* Uses the #1a1a1a distinct black from your theme */
    transition: fill 0.3s ease;
}

/* Hover Effects */
.social-link:hover {
    transform: translateY(-3px); /* Slight lift on hover */
}

.social-link:hover .social-icon {
    fill: var(--secondary-text); /* Turns grey on hover */
}
footer {
    text-align: center;
    padding: 2rem 0 3rem; /* Top padding 2rem, Bottom padding 3rem */
    font-size: 0.75rem;   /* Small, subtle text size */
    color: var(--secondary-text); /* Uses your existing grey color */
    letter-spacing: 0.05em;
    margin-top: auto; /* Pushes footer to bottom if page content is short */
}
/* --- Carousel Styling --- */

.carousel-container {
    position: relative;
    max-width: 800px;     /* Limits width so it doesn't stretch too wide */
    height: 500px;        /* Fixed height for consistency */
    margin: 0 auto 4rem;  /* Centers the carousel and adds bottom spacing */
    overflow: hidden;
    background-color: #fafafa; /* Subtle background while loading */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;           /* Hidden by default */
    transition: opacity 0.8s ease-in-out; /* Smooth fade duration */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;           /* Show active slide */
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Ensures image covers the box without distortion */
    object-position: center;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    padding: 0 20px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.carousel-btn:hover {
    opacity: 1;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    
    /* 1. Stack the Logo and Menu vertically */
    header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1rem; /* Reduce side padding to give links more room */
    }

    /* 2. Allow menu links to wrap and center them */
    nav ul {
        flex-wrap: wrap;        /* Allows links to drop to a second line */
        justify-content: center; /* Centers the links */
        gap: 1rem 1.2rem;       /* Reduces the gap between words */
    }

    /* 3. Stack CV and Contact sections (from previous code) */
    .cv-section {
        grid-template-columns: 1fr;
    }
    
    .contact-layout, .about-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* 4. Fix Carousel height for mobile */
    .carousel-container {
        height: 300px;
    }
}