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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #8b7355;
    --accent-color: #c9a961;
    --background-light: #fafaf8;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.separator {
    opacity: 0.4;
}

.header-actions {
    display: flex;
    gap: 25px;
}

.header-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 300;
    letter-spacing: 0px;
}

.header-link:hover {
    color: var(--accent-color);
}

.header-main {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

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

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

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-sans);
    width: 250px;
    transition: var(--transition);
}

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

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 5px;
}

.search-btn:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 51px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 16px 45px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Filter Section */
.filter-section {
    padding: 60px 0;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-header h3 {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.filter-header p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.5s ease;
    font-family: var(--font-sans);
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Gallery Section */
.gallery {
    padding: 80px 0 100px;
}

.collection-section {
    margin-bottom: 80px;
}

.collection-section.hidden {
    display: none;
}

.collection-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 35px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

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

.artwork-card {
    background: var(--white);
    transition: all 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(0) scale(1);
}

.artwork-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.artwork-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* For portrait images, use contain to show full image */
.artwork-image img[src*="renaissance"],
.artwork-image img[src*="baroque2"],
.artwork-image img[src*="contemp"] {
    object-fit: contain;
}

.placeholder-image {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
}

.placeholder-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(8px);
    width: 30px;
    height: 30px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
}

.placeholder-text {
    position: relative;
    z-index: 1;
    color: #999;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 100px;
}

.artwork-info {
    padding: 20px 25px 25px 25px;
    background: var(--white);
}

.artwork-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.artwork-artist {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 400;
}

.artwork-year {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 0;
    min-height: 85vh;
}

.modal-image {
    background-color: var(--background-light);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image .placeholder-image {
    width: 100%;
    aspect-ratio: 4/5;
}

.modal-image .placeholder-image.large {
    max-width: 500px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.modal-details {
    padding: 60px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-artist {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-year {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.modal-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0;
}

.modal-description h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 25px;
    color: var(--primary-color);
}

.modal-description h4:first-child {
    margin-top: 0;
}

.modal-description p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.action-btn {
    padding: 12px 28px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.action-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.action-btn.outline {
    background-color: transparent;
    color: var(--primary-color);
}

.action-btn.outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h5 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        padding: 40px;
    }
    
    .modal-details {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 20px;
    }
    
    /* Header Top */
    .header-top {
        padding: 8px 0;
        font-size: 11px;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .header-info {
        gap: 10px;
        font-size: 11px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .header-link {
        font-size: 11px;
    }
    
    /* Header Main */
    .header-main {
        padding: 15px 0;
    }
    
    .header-main .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 18px;
        line-height: 1.2;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    /* Navigation */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
        padding: 60px 20px;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 24px;
        font-weight: 500;
    }
    
    /* Search */
    .header-search {
        order: 2;
    }
    
    .search-input {
        width: 150px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-btn {
        padding: 3px;
    }
    
    .search-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Hero */
    .hero {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 13px;
    }
    
    /* Filter Section */
    .filter-section {
        padding: 40px 0;
    }
    
    .filter-header {
        margin-bottom: 30px;
    }
    
    .filter-header h3 {
        font-size: 28px;
    }
    
    .filter-header p {
        font-size: 14px;
    }
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Gallery */
    .gallery {
        padding: 50px 0 60px;
    }
    
    .collection-section {
        margin-bottom: 50px;
    }
    
    .collection-title {
        font-size: 24px;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .artwork-info {
        padding: 15px 18px 18px 18px;
    }
    
    .artwork-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .artwork-artist {
        font-size: 13px;
    }
    
    .artwork-year {
        font-size: 12px;
    }
    
    /* Modal */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }
    
    .modal-close {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    }
    
    .modal-image {
        padding: 15px;
        min-height: 50vh;
        max-height: 50vh;
    }
    
    .modal-image img {
        max-height: 45vh;
    }
    
    .modal-details {
        padding: 25px 20px;
        max-height: none;
    }
    
    .modal-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .modal-artist {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .modal-year {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .modal-separator {
        margin: 20px 0;
    }
    
    .modal-description h4 {
        font-size: 18px;
        margin-bottom: 10px;
        margin-top: 20px;
    }
    
    .modal-description p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    
    .modal-actions {
        margin-top: 30px;
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 13px;
    }
    
    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-column h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-column ul li {
        margin-bottom: 10px;
    }
    
    .footer-column ul li a {
        font-size: 13px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
        font-size: 11px;
    }
    
    .footer-legal {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

