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

:root {
    --primary-black: #1a1a1a;
    --soft-black: #2a2a2a;
    --medium-gray: #666;
    --light-gray: #f8f8f8;
    --border-gray: #e0e0e0;
    --accent-hover: #333;
    
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    --border-radius: 2px;
    --transition: all 0.2s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-black);
    background: white;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: normal;
    letter-spacing: -0.02em;
}

h1 { font-size: 1.75rem; line-height: 1.2; }
h2 { font-size: 1.5rem; margin-bottom: var(--spacing-md); line-height: 1.3; }
h3 { font-size: 1.25rem; margin-bottom: var(--spacing-sm); }
h4 { font-size: 1.1rem; margin-bottom: var(--spacing-xs); }

p {
    margin-bottom: var(--spacing-sm);
}

.intro {
    font-size: 1.1rem;
    color: var(--medium-gray);
    font-weight: 400;
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-gray);
    background: white;
}

.logo a {
    text-decoration: none;
    color: var(--primary-black);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-black);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: var(--primary-black);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Sections */
.hero, .page-hero {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid var(--border-gray);
}

.hero p, .page-hero p {
    color: var(--medium-gray);
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
    font-size: 1.05rem;
}

/* Gallery Filters */
.gallery-filters {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-gray);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid var(--border-gray);
    background: white;
    color: var(--medium-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    border-radius: var(--border-radius);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-black);
    color: var(--primary-black);
}

/* Gallery */
.gallery {
    padding: var(--spacing-xl) 0;
}

.artwork-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.artwork-item {
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition), opacity 0.3s ease, transform 0.3s ease;
    background: white;
    opacity: 1;
    transform: scale(1);
}

.artwork-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.artwork-item.hidden {
    display: none;
}

/* Consistent image size for all artwork */
.artwork-item img {
    width: 100%;
    height: 300px; /* Consistent height for all cards */
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.artwork-item .image-container {
    position: relative;
    overflow: hidden;
}

.artwork-item .image-container:hover img {
    transform: scale(1.05);
}

.artwork-item .image-container::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.artwork-item .image-container:hover::after {
    opacity: 1;
}

.artwork-details {
    padding: var(--spacing-md);
}

.artwork-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.artwork-header h3 {
    margin: 0;
    flex: 1;
}

.artwork-info {
    color: var(--medium-gray);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 90%;
    object-fit: contain;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        max-height: 80%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
        font-size: 0.8rem;
    }
}

.pricing {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* About Page */
.about-hero {
    padding: var(--spacing-xxl) 0;
}

.about-content {
    display: grid;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.social-links {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--primary-black);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-gray);
    transition: var(--transition);
}

.social-links a:hover {
    border-bottom-color: var(--primary-black);
}

/* Process Section */
.process-section {
    padding: var(--spacing-xxl) 0;
    background: var(--light-gray);
    margin-top: var(--spacing-xxl);
}

.process-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.process-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.process-item h4 {
    color: var(--primary-black);
    margin-bottom: var(--spacing-sm);
}

/* Services Section */
.services-section {
    padding: var(--spacing-xxl) 0;
}

.services-grid {
    display: grid;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.service-card {
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow);
}

.service-description {
    color: var(--medium-gray);
    margin-bottom: var(--spacing-md);
}

.service-features {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.service-features li {
    padding: var(--spacing-xs) 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.service-features li::before {
    content: "•";
    color: var(--primary-black);
    margin-right: var(--spacing-xs);
}

.price-range {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-top: var(--spacing-md);
}

/* Timeline */
.process-timeline {
    padding: var(--spacing-xxl) 0;
    background: var(--light-gray);
}

.process-timeline h3 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.timeline-number {
    width: 40px;
    height: 40px;
    background: var(--primary-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.timeline-content h4 {
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--medium-gray);
    margin: 0;
}

/* Forms */
.commission-form-section {
    padding: var(--spacing-xxl) 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.commission-form {
    margin-top: var(--spacing-xl);
}

.form-row {
    display: grid;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--primary-black);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.success-message {
    background: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gray);
    text-align: center;
}

.success-message h3 {
    color: var(--primary-black);
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--primary-black);
    background: white;
    color: var(--primary-black);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-secondary {
    border-color: var(--medium-gray);
    color: var(--medium-gray);
}

.btn-secondary:hover {
    background: var(--medium-gray);
    color: white;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
    width: 100%;
    margin-top: var(--spacing-md);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-gray);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.85rem;
    background: var(--light-gray);
    margin-top: var(--spacing-xxl);
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-menu {
        gap: var(--spacing-md);
    }
    
    .nav-menu a {
        font-size: 0.8rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .nav-container {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    main {
        padding: 0 var(--spacing-lg);
    }
    
    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artwork-item img {
        height: 350px; /* Slightly larger on tablet */
    }
    
    .about-content {
        grid-template-columns: 300px 1fr;
        gap: var(--spacing-xxl);
    }
    
    .about-image img {
        height: 450px; /* 3:4 ratio for profile photo */
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
    .artwork-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .artwork-item img {
        height: 320px; /* Consistent across desktop */
    }
    
    .about-image img {
        height: 400px; /* 3:4 ratio for profile photo */
    }
}
