* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; background: #ffffff; color: #333; line-height: 1.6; position: relative; overflow-x: hidden; }
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, rgba(255,255,255,0) 70%); z-index: -1; animation: glow 12s infinite alternate; }

header { background: #fff; padding: 1.5rem 5%; position: fixed; width: 100%; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(212,175,55,0.1); transition: background 0.3s; }
header.scrolled { background: rgba(255,255,255,0.97); }
.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #d4af37; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: #333; text-decoration: none; transition: color 0.3s, transform 0.3s; }
nav a:hover { color: #d4af37; transform: scale(1.05); }

.hero { height: 100vh; background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('images/hero-bg.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; animation: fadeIn 1.8s ease-in-out; background-attachment: fixed; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 5rem; margin-bottom: 1rem; color: #000; text-shadow: 0 2px 10px rgba(212,175,55,0.2); }
.hero-content p { font-size: 1.6rem; margin-bottom: 2rem; max-width: 800px; margin: 0 auto 2rem; color: #444; }
.btn { 
    background: linear-gradient(135deg, #d4af37 0%, #f0d082 50%, #d4af37 100%);
    background-size: 200% 200%;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.btn:hover { 
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.5);
    background-position: 100% 100%;
}
.btn::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: shimmer 4s infinite;
    opacity: 0;
}
.btn:hover::before { opacity: 1; }
@keyframes shimmer {
    0% { transform: translateX(-150%) skewX(-25deg); }
    50% { transform: translateX(150%) skewX(-25deg); }
    100% { transform: translateX(150%) skewX(-25deg); }
}

.section { padding: 10rem 5% 6rem; text-align: center; animation: slideUp 1s ease-out; }
.section h2 { font-family: 'Playfair Display', serif; font-size: 4rem; margin-bottom: 2rem; color: #d4af37; text-shadow: 0 2px 5px rgba(212,175,55,0.15); }

.grid, .nft-grid, .legacy-grid { display: grid; gap: 3rem; max-width: 1400px; margin: 0 auto; transition: all 0.4s ease; }
.card, .nft-card { background: #f9f9f9; border-radius: 16px; overflow: hidden; transition: all 0.4s ease; box-shadow: 0 6px 20px rgba(0,0,0,0.08); opacity: 0; transform: translateY(40px); position: relative; z-index: 1; }
.card.visible, .nft-card.visible { opacity: 1; transform: translateY(0); }
.card:hover, .nft-card:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(212,175,55,0.25); }

.artwork-wrapper { cursor: pointer; position: relative; overflow: hidden; }
.artwork-img, .artwork-iframe { width: 100%; height: auto; object-fit: contain; background: #fff; transition: transform 0.4s ease; display: block; }
.artwork-wrapper:hover .artwork-img, .artwork-wrapper:hover .artwork-iframe { transform: scale(1.03); }

.preview-link { display: block; text-decoration: none; cursor: pointer; }
.preview-link .artwork-img { transition: transform 0.4s ease; }
.preview-link:hover .artwork-img { transform: scale(1.03); }

.preview-overlay {
    position: relative;
    display: block;
}

.preview-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    max-width: 90%;
    line-height: 1.1;
    transition: transform 0.4s ease;
}

.preview-link:hover .preview-title {
    transform: translate(-50%, -50%) scale(1.05);
}

.card h3, .nft-card h3 { padding: 1.5rem 1.5rem 0.5rem; z-index: 2; position: relative; }
.card p, .nft-card p { padding: 0 1.5rem; z-index: 2; position: relative; }
.artwork-iframe { width: 100%; height: 500px; border: none; border-radius: 12px; }

.size-selector { float: right; margin: 0 0 2rem 0; position: relative; top: -4rem; }
.size-selector select { padding: 0.6rem 1rem; border-radius: 8px; border: 1px solid #ddd; background: #fff; font-size: 1rem; }

.buttons { padding: 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }

.status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.status.available {
    background: #d4af37;
    color: #000;
    border: 1px solid #b8972e;
}

.status.sold {
    background: #000;
    color: #d4af37;
    border: 1px solid #d4af37;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    overflow: auto;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    transform: scale(0.85);
    transition: transform 0.5s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.close:hover {
    color: #d4af37;
    transform: scale(1.2);
}

footer { background: #f9f9f9; text-align: center; padding: 3rem; font-size: 1rem; color: #555; border-top: 1px solid #eee; }

.series-menu { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); list-style: none; padding: 1rem; border-radius: 8px; min-width: 200px; }
.series-menu:hover .dropdown { display: block; }
.dropdown li { margin: 0.6rem 0; }
.dropdown a { color: #333; }

.series-hero { height: 60vh; background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('images/hero-bg.jpg') center/cover; animation: fadeIn 1.8s ease-in-out; background-attachment: fixed; background-size: cover; }

form { max-width: 700px; margin: 0 auto; text-align: left; }
label { display: block; margin: 1.2rem 0 0.6rem; font-weight: bold; }
input, textarea, select { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
button.btn { margin-top: 2rem; width: auto; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes glow { 0% { opacity: 0.4; } 100% { opacity: 0.9; } }

.nft-grid.size-large, .legacy-grid.size-large { grid-template-columns: 1fr; }
.nft-grid.size-large .artwork-img, .nft-grid.size-large .artwork-iframe { max-width: 1200px; height: auto; margin: 0 auto; }
.nft-grid.size-medium, .legacy-grid.size-medium { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.nft-grid.size-small, .legacy-grid.size-small { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .nft-grid.size-medium, .legacy-grid.size-medium { grid-template-columns: 1fr; }
    .size-selector { float: none; text-align: center; margin: 0 auto 2rem; top: 0; }
    .close { top: 20px; right: 20px; font-size: 45px; }
    .preview-title { font-size: 2.2rem; }
}