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

/* Smooth theme transitions */
html {
    transition: background-color 0.3s ease;
}

body, 
.navbar,
.hero,
.gallery,
.artwork-item,
.lightbox-content,
.footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

:root {
    /* Daisy Mode - Deep Lavender & Charcoal */
    --primary-color: #8B7BA8;
    --primary-dark: #756A94;
    --primary-light: #A599C2;
    --background: #D4CDD9;
    --surface: #DDD7E5;
    --surface-alt: #D4CDD9;
    --text-primary: #2C2B35;
    --text-secondary: #4A4952;
    --text-muted: #8A8A95;
    --accent: #5D5470;
    --border: #C4B8C7;
    --shadow: rgba(139, 123, 168, 0.25);
    --hero-gradient: linear-gradient(135deg, #C9BDD0 0%, #D4CDD9 50%, var(--background) 100%);
}

[data-theme="dark"] {
    /* Lavender Mode - 90% Lavenders with Charcoal Text */
    --primary-color: #2C2B35;
    --primary-dark: #1A1920;
    --primary-light: #3D3C47;
    --background: #8B7BA8;
    --surface: #A599C2;
    --surface-alt: #9B8FBD;
    --text-primary: #2C2B35;
    --text-secondary: #1A1920;
    --text-muted: #3D3C47;
    --accent: #2C2B35;
    --border: #B8A5D1;
    --shadow: rgba(44, 43, 53, 0.4);
    --hero-gradient: linear-gradient(135deg, #9B8FBD 0%, #A599C2 50%, var(--background) 100%);
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--surface-alt);
}

/* Navigation */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

[data-theme="dark"] .navbar {
    border-bottom: 2px solid #2C2B35;
}

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

.nav-brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: -0.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

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

/* Theme Toggle */
.theme-toggle {
    background: var(--surface-alt);
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow);
}

[data-theme="dark"] .theme-toggle:hover .theme-icon {
    filter: brightness(1.5);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
    filter: brightness(1.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: all 0.3s ease;
    display: block;
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

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

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.6;
}

/* Gallery */
.gallery {
    padding: 4rem 2rem;
    background: var(--background);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--surface-alt) 0%, transparent 100%);
    pointer-events: none;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Artwork Items */
.artwork-item {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
}

.artwork-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 123, 168, 0.02) 0%, rgba(117, 106, 148, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.artwork-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 123, 168, 0.25);
}

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

.artwork-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--surface-alt);
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

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

.artwork-info {
    padding: 1.5rem;
    background: var(--surface);
    position: relative;
    z-index: 2;
    text-align: center !important;
}

.artwork-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-align: center !important;
}

.artwork-info .medium {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    text-align: center !important;
}

.artwork-info .year {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center !important;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    animation: slideIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
    background: var(--surface);
    border: 2px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.lightbox-close:hover {
    background: var(--accent);
    color: var(--surface);
    border-color: var(--accent);
    transform: scale(1.1);
}

[data-theme="dark"] .lightbox-close:hover {
    color: #E8DDF5;
}

#lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 2rem;
    background: var(--surface);
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.lightbox-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--accent);
    color: var(--surface);
    padding: 2rem 0;
    margin-top: 4rem;
}

[data-theme="dark"] .footer {
    color: #E8DDF5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--surface);
}

[data-theme="dark"] .social-links a {
    color: #D4C4E8;
}

[data-theme="dark"] .social-links a:hover {
    color: #E8DDF5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .brand-title {
        font-size: 1.4rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .nav-menu a {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        gap: 1rem;
        align-items: center;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .gallery {
        padding: 2rem 1rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .lightbox-info {
        padding: 1.5rem;
    }
    
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-content,
    .contact-content {
        padding: 2rem;
    }
}

/* About Page Styles */
.about-page {
    padding: 4rem 2rem;
    min-height: 60vh;
    background: var(--surface-alt);
}

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

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.about-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.about-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Contact Page Styles */
.contact-page {
    padding: 4rem 2rem;
    min-height: 60vh;
    background: var(--surface-alt);
}

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

.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.contact-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

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

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Image Protection */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.artwork-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}