/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 200;
    line-height: 1.8;
    color: #2a2a2a;
    background-color: #fafafa;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ==========================================
   HEADER
   ========================================== */
header {
    text-align: center;
    margin-bottom: 120px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2a2a2a;
}

/* ==========================================
   LOGO ANIMATION
   ========================================== */
.art-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    cursor: pointer;
}

.art-animation {
    width: 140px;
    height: 140px;
}

.art-animation circle,
.art-animation text,
.art-animation path {
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-text {
    font-size: 14.2px;
    font-weight: 300;
    letter-spacing: 0.1em;
    fill: #666;
    opacity: 0.5;
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #888;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    margin-bottom: 140px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
    color: #555;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
    column-gap: 50px;
    row-gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.piece {
    background-color: transparent;
    transition: opacity 0.3s ease;
    height: 400px;
    overflow: hidden;
}

.piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.piece:hover {
    opacity: 0.8;
}

/* ==========================================
   MEDIUM-SPECIFIC STYLES
   ========================================== */

/* Oil Paintings */
#oil .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 230px));
}

#oil .piece {
    height: 450px;
}

/* Graphite Drawings */
#graphite .piece {
    height: 320px;
}

/* Film Photography */
#film .gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

#film .piece {
    flex-shrink: 0;
}

#film .piece.portrait {
    width: auto;
    height: 400px;
}

#film .piece.portrait img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

#film .piece.landscape {
    width: auto;
    height: 280px;
}

#film .piece.landscape img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    text-align: center;
    padding: 60px 0 40px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #aaa;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 60px 24px;
    }

    h1 {
        font-size: 1.8rem;
        letter-spacing: 0.2em;
    }

    .art-animation {
        width: 200px;
        height: 200px;
    }

    nav {
        gap: 30px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 0.8rem;
    }

    section {
        margin-bottom: 100px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
