:root {
    --creme-bg: #FDFBF7;
    --dark-blue: #0B192C;
    --black-text: #1A1A1A;
    --pastel-mint: #e2f0cb;
    --pastel-peach: #ffdac1;
    --pastel-pink: #ffb7b2;
    --pastel-blue: #c7ceea;
    --pastel-gray: #f0f0f0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--creme-bg);
    color: var(--dark-blue);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--black-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Header */
#main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 25, 44, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #555;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--creme-bg);
    min-width: 160px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.05);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--pastel-gray);
}

/* Main Content Area */
main {
    min-height: calc(100vh - 160px);
    padding-bottom: 4rem;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

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

.painting-card {
    cursor: pointer;
    group: card;
    display: flex;
    flex-direction: column;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 4/5;
    background-color: var(--pastel-gray);
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.painting-card:hover .card-image-wrapper {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.painting-card:hover img {
    transform: scale(1.05);
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #666;
}

.status-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background-color: var(--pastel-mint);
    color: #2e5902;
}

.status-sold {
    background-color: var(--pastel-pink);
    color: #7a1e1e;
}

/* Individual Painting Page */
.painting-detail-view {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    padding-top: 4rem;
}

.painting-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.painting-detail-info {
    display: flex;
    flex-direction: column;
}

.painting-detail-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.painting-detail-meta {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: #555;
}

.meta-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.painting-price {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.painting-backstory h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.painting-backstory p {
    font-size: 1.1rem;
    color: #444;
}

.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    color: #666;
}

.back-btn:hover {
    color: var(--black-text);
}

/* About Page */
.about-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 4rem;
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--pastel-blue);
    border-radius: 2px;
    object-fit: cover;
}

.about-text h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #666;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
    .painting-detail-view, .about-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}
