/* ========================================
   View of Art - Dark Theme Gallery
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #141414;
    --color-bg-card: #1a1a1a;
    --color-accent: #c9a55c;
    --color-accent-hover: #d4b76a;
    --color-sold: #8b4049;
    --color-text: #e8e8e8;
    --color-text-muted: #999;
    --color-white: #fff;
    --color-border: #2a2a2a;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-muted);
    position: relative;
    padding: 5px 0;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    padding: 60px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.hero-image {
    height: 100vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ========================================
   Intro Section
   ======================================== */

.intro {
    padding: 100px 0;
    background: var(--color-bg-light);
}

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

.intro h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 30px;
}

.intro p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* ========================================
   Preview Section
   ======================================== */

.preview {
    padding: 100px 0;
}

.preview h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 50px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.preview-item:hover img {
    transform: scale(1.1);
}

.preview-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
}

.preview-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
    padding: 140px 0 60px;
    background: var(--color-bg-light);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ========================================
   Gallery Grid
   ======================================== */

.gallery-section {
    padding: 60px 0;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition), transform var(--transition);
}

.gallery-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-title {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
}

.gallery-price {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sold Badge */
.sold-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-sold);
    color: var(--color-white);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    z-index: 10;
}

.gallery-item.sold {
    opacity: 0.85;
}

.gallery-item.sold .gallery-price {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

/* Lazy Loading Placeholder */
.gallery-item img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item img.loaded {
    opacity: 1;
}

/* ========================================
   Lightbox
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 2px;
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
}

.lightbox-caption {
    color: var(--color-white);
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.lightbox-price {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 15px;
    transition: opacity var(--transition), color var(--transition);
    opacity: 0.6;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    color: var(--color-accent);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Artist Section
   ======================================== */

.artist-section {
    padding: 80px 0;
}

.artist-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.artist-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.artist-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.artist-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin: 40px 0 20px;
}

.artist-text p {
    color: var(--color-text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.artist-text blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    font-style: italic;
    margin: 30px 0;
    padding-left: 30px;
    border-left: 3px solid var(--color-accent);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-center {
    display: flex;
    justify-content: center;
}

.contact-center .contact-info {
    max-width: 500px;
    text-align: center;
}

.contact-center .contact-item {
    justify-content: center;
    text-align: left;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.contact-item strong {
    display: block;
    color: var(--color-white);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--color-text-muted);
    line-height: 1.5;
}

.contact-item a {
    color: var(--color-accent);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-bg-card);
    color: var(--color-text);
    transition: border-color var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-bg-light);
    color: var(--color-text);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 100px 30px 60px;
        text-align: center;
    }

    .hero-image {
        height: 50vh;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .artist-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .artist-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg);
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--color-border);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 10px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    .gallery-overlay {
        padding: 20px 10px 10px;
    }

    .gallery-title {
        font-size: 0.85rem;
    }

    .gallery-price {
        font-size: 0.8rem;
    }

    .sold-badge {
        padding: 4px 8px;
        font-size: 0.65rem;
        top: 10px;
        right: 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 10px;
    }

    .intro,
    .preview {
        padding: 60px 0;
    }

    .intro h2,
    .preview h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 100px 20px 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .preview-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .contact-form-wrapper {
        padding: 0;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .gallery-overlay {
        opacity: 1;
    }

    .nav-link::after {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .lightbox {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .page-header {
        background: none;
        color: black;
        padding: 20px 0;
    }
}
