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

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-gold: #c9a961;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #808080;
    --border-color: #2a2a2a;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--accent-gold); 
}

.admin-controls {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.admin-link { 
    color: var(--accent-gold); 
}

.logout-link { 
    color: #ff6b6b; 
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--primary-bg) 0%, 
        var(--secondary-bg) 50%, 
        var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(201, 169, 97, 0.03) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 200;
    letter-spacing: 12px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    animation: titleUnderline 2s ease-out 0.5s forwards;
}

@keyframes titleUnderline {
    0% { width: 0; }
    100% { width: 300px; }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 6px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 1s forwards;
}

@keyframes subtitleFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-divider {
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 3rem auto;
    opacity: 0;
    animation: dividerExpand 1.5s ease-out 1.5s forwards;
}

@keyframes dividerExpand {
    0% { opacity: 0; width: 0; }
    100% { opacity: 1; width: 150px; }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-secondary);
    font-weight: 200;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: descriptionFadeIn 1s ease-out 2s forwards;
}

@keyframes descriptionFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 3rem;
    max-width: 1800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
}

.section-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0 auto;
}

.gallery {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 0;
}

.artwork-card {
    position: absolute;
    background: var(--secondary-bg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    will-change: transform;
}

/* Artistic scattered layout - varied sizes and positions */
.artwork-card:nth-child(6n+1) {
    width: 450px;
    height: 550px;
    left: 5%;
    z-index: 3;
}

.artwork-card:nth-child(6n+2) {
    width: 380px;
    height: 480px;
    right: 8%;
    z-index: 2;
}

.artwork-card:nth-child(6n+3) {
    width: 520px;
    height: 420px;
    left: 35%;
    z-index: 4;
}

.artwork-card:nth-child(6n+4) {
    width: 400px;
    height: 500px;
    right: 15%;
    z-index: 1;
}

.artwork-card:nth-child(6n+5) {
    width: 480px;
    height: 380px;
    left: 15%;
    z-index: 2;
}

.artwork-card:nth-child(6n) {
    width: 420px;
    height: 520px;
    right: 25%;
    z-index: 3;
}

.artwork-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(201, 169, 97, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(0, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.artwork-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-gold), transparent, var(--accent-gold));
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
}

.artwork-card:hover::before {
    opacity: 1;
}

.artwork-card:hover::after {
    opacity: 0.3;
}

.artwork-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: 0 25px 80px rgba(201, 169, 97, 0.2), 
                0 15px 40px rgba(0, 0, 0, 0.6);
}

.artwork-card img, 
.artwork-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.artwork-card:hover img, 
.artwork-card:hover video {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.artwork-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0.95) 80%, 
        rgba(0, 0, 0, 0.98) 100%);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.artwork-card:hover .artwork-info {
    transform: translateY(0);
    opacity: 1;
}

.artwork-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    position: relative;
}

.artwork-info h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--accent-gold);
    opacity: 0.6;
}

.artwork-info p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #f0f0f0;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    font-weight: 300;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.year {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0.9;
}

.delete-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.artwork-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

/* About Section */
.about-section {
    padding: 8rem 3rem;
    background: var(--secondary-bg);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content {
    margin-top: 3rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Footer */
.footer {
    padding: 3rem;
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--accent-gold);
    font-style: italic;
}

/* Admin Panels */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.admin-panel.hidden {
    display: none;
}

.admin-content {
    background: var(--secondary-bg);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid var(--accent-gold);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--text-primary);
}

.admin-content h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--primary-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.image-preview {
    margin-top: 1rem;
    min-height: 250px;
    border: 1px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--primary-bg);
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-gold);
    border: none;
    color: var(--primary-bg);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #d4b76e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.status.hidden {
    display: none;
}

.status.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.status.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.status.loading {
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 2rem;
}

.lightbox.hidden {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--accent-gold);
    font-size: 3rem;
    cursor: pointer;
    z-index: 3001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--text-primary);
}

.lightbox-content {
    max-width: 95%;
    max-height: 90%;
    display: flex;
    gap: 4rem;
    align-items: center;
}

#lightboxMedia img, 
#lightboxMedia video {
    max-width: 65%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-info {
    max-width: 450px;
}

.lightbox-info h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent-gold);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.lightbox-info p {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hidden { 
    display: none !important; 
}

/* Scroll Animations */
.gallery-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.gallery-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.artwork-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.artwork-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for artwork cards */
.artwork-card:nth-child(1) { transition-delay: 0.1s; }
.artwork-card:nth-child(2) { transition-delay: 0.2s; }
.artwork-card:nth-child(3) { transition-delay: 0.3s; }
.artwork-card:nth-child(4) { transition-delay: 0.4s; }
.artwork-card:nth-child(5) { transition-delay: 0.5s; }
.artwork-card:nth-child(6) { transition-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1400px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-controls {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title { 
        font-size: 3.5rem; 
        letter-spacing: 6px; 
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.8;
    }

    .gallery-section,
    .about-section {
        padding: 4rem 1.5rem;
    }

    .gallery {
        padding: 1rem 0;
    }

    .artwork-info {
        padding: 1.5rem;
    }

    .artwork-info h3 {
        font-size: 1.6rem;
    }

    .lightbox-content {
        flex-direction: column;
        gap: 2rem;
    }

    #lightboxMedia img,
    #lightboxMedia video {
        max-width: 100%;
    }

    .section-title { 
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .nav-brand {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .artwork-info h3 {
        font-size: 1.4rem;
    }
}