/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #d4af37;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d4af37;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f0f0" width="1200" height="600"/><g fill="%23e0e0e0"><circle cx="200" cy="150" r="80"/><rect x="400" y="100" width="200" height="300" rx="10"/><polygon points="700,200 800,100 900,200 850,300 750,300"/></g></svg>');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Countdown Timer */
.countdown-container {
    background: rgba(0,0,0,0.7);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #d4af37;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    min-width: 100px;
}

.time-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
}

.time-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Gallery Section */
.featured-gallery {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Horizontal Scroll for Featured Works */
.horizontal-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f8f8;
    flex: 0 0 300px;
    min-width: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.artwork-image {
    position: relative;
    height: 300px;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.artwork-image .placeholder-art {
    font-size: 5rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.gallery-item:hover .artwork-image .placeholder-art {
    transform: scale(1.1);
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .artwork-overlay {
    transform: translateY(0);
}

.artwork-overlay h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.artwork-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.artwork-overlay .artist {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Current Exhibits Section */
.current-exhibits {
    padding: 5rem 0;
    background: #f8f8f8;
}

.exhibits-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.exhibit-item {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exhibit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.exhibit-item .exhibit-image {
    flex: 0 0 200px;
    height: 200px;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exhibit-item .exhibit-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exhibit-item .exhibit-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.exhibit-item .exhibit-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.exhibit-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.exhibit-date,
.exhibit-location {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 5rem 0;
    background: white;
}

.events-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.event-item {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.event-date {
    flex: 0 0 80px;
    text-align: center;
    background: #d4af37;
    color: #1a1a1a;
    padding: 1rem;
    border-radius: 10px;
    margin-right: 1.5rem;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.event-content {
    flex: 1;
}

.event-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.event-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.event-time {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
}

/* Info Section */
.info-section {
    padding: 5rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #d4af37;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Page-specific styles */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.exhibits-section,
.auctions-section,
.events-section {
    padding: 5rem 0;
    background: white;
}

.exhibits-grid,
.auctions-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.exhibit-card,
.auction-card,
.event-card {
    background: #f8f8f8;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.exhibit-card:hover,
.auction-card:hover,
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.event-card.featured {
    border: 2px solid #d4af37;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.exhibit-image,
.auction-image,
.event-image {
    height: 200px;
    background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #d4af37;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.placeholder-art {
    font-size: 4rem;
    opacity: 0.6;
}

.exhibit-content,
.auction-content,
.event-content {
    padding: 1.5rem;
}

.exhibit-content h3,
.auction-content h3,
.event-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.exhibit-content p,
.auction-content p,
.event-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.exhibit-date,
.auction-details,
.event-details {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
}

.auction-details,
.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auction-date,
.auction-location,
.event-date,
.event-location,
.event-type {
    display: block;
}

.event-type {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 0.8rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        flex-direction: column;
        align-items: center;
    }
    
    .time-unit {
        width: 100%;
        max-width: 150px;
    }
}