/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

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

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Gallery */
.gallery-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #667eea;
    background-color: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #667eea;
    color: white;
}

.filter-btn.active {
    background-color: #667eea;
    color: white;
}

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

/* Art Card */
.art-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.art-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.art-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f5f5f5;
    overflow: hidden;
}

.art-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.art-mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.art-card:hover .art-mockup {
    opacity: 1;
}

.art-info {
    padding: 1.5rem;
}

.art-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.art-artist {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.art-dimensions {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.art-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.art-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

.art-inquiry-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.art-inquiry-btn:hover {
    background-color: #5568d3;
}

/* Loading and No Art States */
.loading, .no-art {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.2rem;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .category-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .art-title {
        font-size: 1.1rem;
    }

    .art-price {
        font-size: 1.1rem;
    }
}
