/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #6b7280;
    --text-color: #374151;
    --bg-color: #fff6e5;
    /* warm cream background */
    --border-color: #f1d7b8;
    --hover-color: #ffe8c7;
    --sold-color: #9ca3af;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --gradient-start: #fff9ef;
    --gradient-end: #ffe8cf;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

.background-signature {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(160px, 26vw, 380px);
    letter-spacing: 32px;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(90, 60, 40, 0.32);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    text-shadow: 0 35px 110px rgba(0, 0, 0, 0.35);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    z-index: -1;
}

@media (max-width: 768px) {
    .background-signature {
        top: 55%;
        letter-spacing: 18px;
        opacity: 0.5;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(255, 246, 229, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-family: 'Playfair Display', 'Inter', serif;
    position: relative;
    padding-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.logo::before,
.logo::after {
    content: '';
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
    opacity: 0.4;
}

.logo::after {
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* Navigation Styles */
.nav {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.menu-icon {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Main Content */
.main {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 50px;
    color: #000000;
    font-family: 'Inter', sans-serif;
}

/* Work Section */
.work-section {
    margin-bottom: 100px;
}

.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.artwork-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 220, 0.6));
    border: 1px solid rgba(255, 211, 173, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(255, 186, 120, 0.25);
    border-color: rgba(255, 186, 120, 0.5);
}

.artwork-image {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    background: linear-gradient(135deg, rgba(255, 247, 230, 0.9), rgba(255, 228, 196, 0.8));
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 211, 173, 0.6);
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artwork-card:hover .artwork-image {
    box-shadow: 0 15px 35px rgba(255, 186, 120, 0.35);
    transform: scale(1.02);
    border-color: rgba(255, 186, 120, 0.8);
}

.artwork-image::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 6px;
    background: radial-gradient(circle, rgba(255, 224, 186, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.artwork-card:hover .artwork-image::before {
    opacity: 1;
}

.artwork-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.artwork-card:hover::after {
    opacity: 1;
}

.image-placeholder {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    padding: 20px;
    opacity: 0.6;
}

.artwork-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.artwork-title {
    font-size: 20px;
    font-weight: 600;
    color: #3f3122;
    /* muted sepia to separate from glow */
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.artwork-card:hover .artwork-title {
    color: #76523a;
    /* soft bronze */
}

.artwork-year,
.artwork-medium,
.artwork-size {
    font-size: 14px;
    color: #6c5b4d;
    /* understated taupe */
    line-height: 1.5;
}

.artwork-price {
    font-size: 17px;
    font-weight: 600;
    color: #0f0f0f;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.artwork-card:hover .artwork-price {
    color: #8c5d3d;
}

.artwork-price.sold {
    color: var(--sold-color);
    text-transform: uppercase;
    font-weight: 500;
}

/* Biography Section */
.biography-section,
.statement-section {
    margin-bottom: 100px;
    padding-top: 60px;
}

.biography-content,
.statement-content {
    max-width: 800px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.biography-content p,
.statement-content p {
    margin-bottom: 20px;
}

/* Footer Styles */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
    position: relative;
    z-index: 1;
}

.story-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1100;
    overflow: hidden;
    padding: 20px;
}

.story-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.story-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.story-modal__content {
    position: relative;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(255, 246, 229, 0.98));
    border-radius: 16px;
    max-width: 900px;
    width: min(90%, 900px);
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1;
    margin: 40px auto;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.45s ease, transform 0.45s ease;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 246, 229, 0.5);
}

.story-modal__content::-webkit-scrollbar {
    width: 6px;
}

.story-modal__content::-webkit-scrollbar-track {
    background: rgba(255, 246, 229, 0.5);
    border-radius: 3px;
}

.story-modal__content::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

.story-modal__content::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.story-modal__content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.15), rgba(255, 180, 120, 0.15));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.story-modal.active .story-modal__content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.story-modal.active .story-modal__content::after {
    opacity: 1;
}

.story-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #3f3122;
    line-height: 1;
    transition: color 0.3s ease;
}

.story-modal__close:hover {
    color: #8c5d3d;
}

.story-modal__body {
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-modal__image {
    position: relative;
    width: auto;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.story-modal__image::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 18px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}

.story-modal.active .story-modal__image::before {
    opacity: 1;
}

.story-modal__image img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.story-modal.active .story-modal__image img {
    transform: translateY(0);
    opacity: 1;
}

.story-modal__text h3 {
    font-size: 26px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: #3f3122;
}

.story-modal__text h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.story-modal__text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s;
}

.story-modal.active .story-modal__text {
    opacity: 1;
    transform: translateY(0);
}

.story-modal__text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #4a3c2c;
}

.story-trigger {
    cursor: pointer;
}

.story-trigger:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-content .footer-links {
    grid-column: 1;
}

.footer-center {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.footer-right {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.footer-info {
    display: none;
}

.footer-name {
    font-size: 14px;
    text-transform: lowercase;
    color: var(--text-color);
    letter-spacing: 1px;
}

.footer-location {
    font-size: 14px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-link.mail:hover {
    color: #8b5e3c;
}

.footer-link.mail:hover svg {
    fill: #8b5e3c;
}

.footer-link.instagram {
    color: #8b5e3c;
}

.footer-link.instagram:hover {
    color: #e86d7b;
}

.footer-link.instagram:hover svg {
    fill: #e86d7b;
}

.footer-email-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-email-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-email a:hover,
.footer-social a:hover {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}

.footer-contact-label {
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--secondary-color);
    margin-bottom: 4px;
    text-align: left;
    width: 100%;
    align-self: flex-start;
}

.footer-contact-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.footer-instagram-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-instagram-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-location-block {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.footer-link {
    color: var(--text-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.footer-contact-items .footer-link {
    justify-content: flex-start;
}

.footer-link:not(.footer-location-link) {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:not(.footer-location-link):hover {
    color: var(--accent-color);
}

.footer-contact-items .footer-location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
}

.footer-location-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-location-icon svg {
    width: 100%;
    height: 100%;
    fill: #8c5d3d;
}

.footer-center .footer-location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
}

.footer-right .footer-copy {
    font-size: 12px;
    color: var(--secondary-color);
    margin: 0;
}

.footer-content .footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 40px;
    margin-top: 10px;
}

.footer-content .footer-copyright p {
    font-size: 12px;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .menu-toggle {
        display: none;
    }

    .nav-list {
        display: none;
        /* Hide nav list as it is empty and causing issues */
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: 30px;
        text-align: center;
    }

    .artworks-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links,
    .footer-center,
    .footer-right {
        grid-column: 1;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .footer-contact-items {
        justify-content: center;
    }

    .footer-contact-label {
        text-align: center;
        width: 100%;
    }

    .main {
        padding: 30px 0;
    }

    .biography-section,
    .statement-section {
        margin-bottom: 60px;
        padding-top: 30px;
    }

    .story-modal__content {
        padding: 20px;
        margin: 10px;
        width: 95%;
        max-height: 90vh;
    }

    .story-modal__body {
        flex-direction: column;
        gap: 20px;
    }

    .story-modal__image {
        width: 100%;
        justify-content: center;
    }

    .story-modal__image img {
        max-height: 40vh;
    }

    .header {
        padding: 15px 0;
    }

    .logo {
        font-size: 24px;
        letter-spacing: 4px;
        justify-content: center;
    }

    .background-signature {
        font-size: 150px;
        top: 50%;
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .artwork-title {
        font-size: 18px;
    }

    .container {
        padding: 0 15px;
    }

    .story-modal__content {
        padding: 15px;
    }

    .story-modal__close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        /* Smaller font size */
        padding: 5px;
        z-index: 100;
        background: transparent;
        /* Remove background */
        border-radius: 0;
        width: auto;
        height: auto;
        display: block;
        color: #3f3122;
    }

    .story-modal__image {
        width: 100%;
        justify-content: center;
        margin-top: 30px;
        /* Add space for the close button */
    }

    .story-modal__text h3 {
        font-size: 20px;
    }

    .story-modal__text p {
        font-size: 14px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Print Styles */
@media print {

    .header,
    .footer {
        display: none;
    }

    .main {
        padding: 0;
    }
}