/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #CF9FFF;
}

/* Header and Navigation  #f8f8f8 #C81CDE*/
header {
    background: linear-gradient(135deg, #CF9FFF 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ccc;
}

/* Dropdown styles removed - now using direct links */

/* Hero Section */
.hero {
    text-align: center;
    padding: 0.5rem 2rem 0.5rem 2rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    margin-top: 0;
    font-style: italic;
}

.edition-info {
    color: #888;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Edition content with logo */
.edition-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.logo-container {
    flex-shrink: 0;
}

.artist-logo {
    transition: transform 0.3s ease;
}

.artist-logo:hover {
    transform: scale(1.1);
}

/* Facebook icon styling */
.facebook-container {
    flex-shrink: 0;
}

.facebook-icon {
    transition: transform 0.3s ease;
}

.facebook-icon:hover {
    transform: scale(1.1);
}

.facebook-link {
    text-decoration: none;
}

.edition-text {
    flex-grow: 1;
}

.edition-text .edition-info {
    margin: 0;
    text-align: center;
}

/* Gallery Container */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 300;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Section header links */
.section-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #770737;
    text-decoration: underline;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.artwork-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #BF40BF;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.artwork-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.artwork-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #f8f8f8;
    border: 2px solid #ccc;
    border-bottom: none;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

/* Specific sizing for portrait images (figurative) */
#figurative .artwork-image {
    height: 380px;
}

/* Keep landscape images at original size */
#landscape .artwork-image {
    height: 300px;
}

.artwork-item:hover .artwork-image {
    transform: scale(1.05);
}

/* Add clickable cursor to all artwork images */
.artwork-image {
    cursor: pointer;
}

/* Add overlay hint on hover */
.artwork-item::after {
    content: 'Click to view full size';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.artwork-item:hover::after {
    opacity: 1;
}

.artwork-item {
    position: relative;
}

.artwork-info {
    padding: 2rem;
}

.artwork-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.artwork-details {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.artwork-quote {
    font-style: italic;
    color: #555;
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.artwork-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

.artwork-description {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    background: #f8f8f8;
    padding: 4rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 300;
}

.contact-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.submit-btn {
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #333;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
    border: 1px solid #c3e6cb;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details,
.artwork-info-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-details h4,
.artwork-info-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.contact-details p,
.artwork-info-box p {
    margin-bottom: 0.8rem;
    color: #666;
    line-height: 1.6;
}

.contact-details p:last-child,
.artwork-info-box p:last-child {
    margin-bottom: 0;
}

/* Social contact styling */
.social-contact {
    margin-top: 1rem;
}

.facebook-contact-link {
    display: inline-block;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.facebook-contact-link:hover {
    background-color: rgba(24, 119, 242, 0.1);
    transform: scale(1.05);
}

.facebook-contact-icon {
    transition: transform 0.3s ease;
}

.facebook-contact-link:hover .facebook-contact-icon {
    transform: scale(1.1);
}

/* Contact Info */
.contact-info {
    text-align: center;
    padding: 3rem 2rem;
    background: #f0f0f0;
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    transition: transform 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

#modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

#modal-info {
    padding: 2rem;
    transition: opacity 0.3s ease;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .nav-menu {
        margin-top: 1rem;
        gap: 1.5rem;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    /* Dropdown mobile styles removed */
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
    
    .edition-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
        max-width: 100%;
    }
    
    .artist-logo, .facebook-icon {
        width: 50px;
        height: 50px;
    }
    
    .edition-text .edition-info {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .edition-text {
        flex: 1;
        min-width: 0;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-container {
        padding: 2rem 1rem;
    }

    .modal-content {
        margin: 10% auto;
        max-width: 95%;
    }

    #modal-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: row;
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    /* Additional dropdown mobile styles removed */

    .hero {
        padding: 0.5rem 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .artwork-info {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 2rem 1rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-details,
    .artwork-info-box {
        padding: 1.5rem;
    }
    
    .artist-logo, .facebook-icon {
        width: 45px;
        height: 45px;
    }
    
    .edition-content {
        gap: 0.3rem;
    }
    
    .edition-text .edition-info {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}
