/* ============================================
   Pastel Marzia - Stacked Art Gallery
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@400;500;600&display=swap');

@font-face {
    font-family: 'Mamabear';
    src: url('fonts/Mamabear_rs-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Peachy color scheme */
    --bg: #FFD6C8;
    --bg-soft: #FCCCD6;
    --bg-card: #ffffff;
    --header: #2d2424;
    --coral: #E44947;
    --coral-soft: #FCCCD6;
    --coral-deep: #c93b39;
    --text: #2d2424;
    --text-soft: #5a4a4a;
    --text-light: #8a7a7a;
    --white: #ffffff;
    --border: #f5ddd5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

::selection {
    background: var(--coral);
    color: var(--white);
}

/* ============================================
   Custom Cursor & Global Interactions
   ============================================ */

/* Cute hand cursor - pointing */
.art-card {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%233d2c2c"><path d="M17 8c0-1.1.9-2 2-2s2 .9 2 2v7h1V9c0-1.1.9-2 2-2s2 .9 2 2v10c0 5-4 8-8 8h-2c-4 0-7-3-7-7v-3c0-1.1.9-2 2-2s2 .9 2 2v1h1v-7c0-1.1.9-2 2-2s2 .9 2 2v5h1V8z"/><circle cx="18" cy="6" r="1.5" fill="%23e76f5a"/></g></svg>') 8 0, grab;
}

/* Grabbing hand */
.art-card:active,
.art-card.dragging {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%233d2c2c"><path d="M26 12v8c0 5-4 8-8 8h-2c-4 0-7-3-7-7v-3c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2v1h1v-4c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2v2h1v-3c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2v2h1v-2c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2z"/><circle cx="24" cy="10" r="1.5" fill="%23e76f5a"/></g></svg>') 8 0, grabbing;
}

a, button, .nav-links a {
    cursor: pointer;
}

/* Smooth transitions on interactive elements */
a, button, .nav-links a, .art-card, .blob-frame, .drop-zone {
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}


/* ============================================
   Hero Section
   ============================================ */

/* Slow, calm fade-in animation */
@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: var(--bg);
    scroll-snap-align: start;
    overflow: hidden;
}

.site-title {
    text-align: center;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInSoft 1.8s ease-out 1s forwards;
}

.site-title img {
    max-width: 320px;
    height: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    max-width: 1000px;
    align-items: center;
    margin-top: 0.5rem;
}

.hero-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
}

.hero-left {
    text-align: right;
    justify-self: end;
    animation: fadeInSoft 1.8s ease-out 1.6s forwards;
}

.hero-right {
    text-align: left;
    justify-self: start;
    animation: fadeInSoft 1.8s ease-out 1.8s forwards;
}

.nav-link-main {
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link-main:hover {
    color: var(--coral);
    transform: translateX(5px);
}

.hero-left .nav-link-main:hover {
    transform: translateX(-5px);
}

.nav-link-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link-sub:hover {
    color: var(--coral);
}

.hero-photo {
    position: relative;
    opacity: 0;
    animation: fadeInSoft 2.2s ease-out 0.2s forwards;
}

.photo-frame {
    width: 340px;
    height: 340px;
    box-shadow: 0 4px 15px rgba(60, 30, 30, 0.12);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Art Thumbnails Row
   ============================================ */

.art-preview {
    padding: 1rem 0;
    background: var(--bg);
    overflow: hidden;
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: 0.5rem auto 0;
    opacity: 0;
    animation: fadeInSoft 1.8s ease-out 2.2s forwards;
}


.thumbnail-row {
    display: flex;
    gap: 20px;
    padding: 1rem 0;
    cursor: grab;
    user-select: none;
}

.thumbnail-row.dragging {
    cursor: grabbing;
}

.art-thumbnail {
    flex-shrink: 0;
    width: 100px;
    aspect-ratio: 7/9;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 4px;
}

.thumbnail-row:not(.dragging) .art-thumbnail:hover {
    transform: rotate(-3deg) scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 30, 30, 0.2);
    z-index: 10;
}

.thumbnail-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.art-preview:hover .thumbnail-dots {
    opacity: 1;
}

.thumb-dot {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.thumb-dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-dot:hover {
    transform: scale(1.3);
    opacity: 0.7;
}

.thumb-dot.active {
    opacity: 1;
}

.art-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ============================================
   Gallery - Stacked Cards
   ============================================ */

.gallery {
    padding: 6rem 3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}


/* Floating decorative elements */
.floater {
    position: absolute;
    font-size: 2rem;
    color: var(--coral-soft);
    opacity: 0.6;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.floater-1 { top: 15%; left: 8%; animation-delay: 0s; }
.floater-2 { top: 70%; left: 5%; animation-delay: 1s; font-size: 1.5rem; }
.floater-3 { top: 20%; right: 10%; animation-delay: 2s; font-size: 1.2rem; }
.floater-4 { top: 75%; right: 8%; animation-delay: 3s; }
.floater-5 { top: 45%; right: 5%; animation-delay: 4s; font-size: 1.8rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1100px;
    align-items: center;
}

/* Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 7/9;
    margin: 0 auto;
}

.art-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 40px rgba(60, 30, 30, 0.15);
    cursor: grab;
    user-select: none;
    will-change: transform;
    transform-origin: center center;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

/* Top card hover wiggle */
.art-card:first-child:hover:not(.dragging) {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg) scale(1.02); }
    75% { transform: rotate(2deg) scale(1.02); }
}

.art-card:active {
    cursor: grabbing;
}

.art-card.dragging {
    cursor: grabbing;
    box-shadow:
        0 30px 60px rgba(60, 30, 30, 0.3),
        0 0 0 3px var(--coral);
    z-index: 100 !important;
}

.art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.art-card .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(transparent, rgba(255,255,255,0.95));
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0;
    transition: opacity 0.3s;
}

.art-card:first-child .card-title {
    opacity: 1;
}

/* Card Stack Wrapper */
.card-stack-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Art Gallery Carousel */
.art-gallery-carousel {
    margin-top: 3.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.art-gallery-carousel.visible {
    opacity: 1;
    pointer-events: auto;
}

.art-gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.art-gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.art-gallery-thumb.loaded {
    opacity: 0.6;
}

.art-gallery-thumb.loaded:hover {
    opacity: 1;
    transform: scale(1.1);
}

.art-gallery-thumb.loaded.active {
    opacity: 1;
    border-color: var(--coral);
}

.art-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 214, 200, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(60, 30, 30, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--coral);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.2);
}


/* Art Info */
.art-info {
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 3px dashed transparent;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 7/9;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.art-info-content {
    transition: opacity 0.3s ease;
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drop-overlay span {
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--coral);
    letter-spacing: 0.02em;
}

.drop-overlay .drop-hint {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* When dragging is active */
.art-info.drag-active {
    border-color: var(--coral);
    background: rgba(228, 73, 71, 0.05);
}

.art-info.drag-active .art-info-content {
    opacity: 0;
}

.art-info.drag-active .drop-overlay {
    opacity: 1;
}

/* When hovering over drop zone */
.art-info.drag-over {
    background: rgba(228, 73, 71, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(228, 73, 71, 0.3);
}

.art-info h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    transition: all 0.3s ease;
    cursor: default;
}

.art-info h1:hover {
    color: var(--coral);
    transform: translateX(5px);
}

.art-info p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.art-info .price {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.stack-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-hand {
    display: inline-block;
    font-size: 1.2rem;
    animation: drag-hint 2s ease-in-out infinite;
}

@keyframes drag-hint {
    0%, 100% {
        transform: translateX(0) rotate(-10deg);
    }
    25% {
        transform: translateX(15px) rotate(0deg);
    }
    50% {
        transform: translateX(15px) rotate(5deg);
    }
    75% {
        transform: translateX(-5px) rotate(-5deg);
    }
}

/* Card counter */
.card-counter {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 500;
    background: var(--bg-card);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Drag indicator - floating hand */
.drag-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 200;
    animation: fade-out 4s ease-out forwards;
    animation-delay: 2s;
}

.drag-hand {
    font-size: 3rem;
    display: block;
    animation: hand-drag 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes hand-drag {
    0%, 100% {
        transform: translate(0, 0) rotate(-5deg);
    }
    30% {
        transform: translate(40px, -10px) rotate(5deg);
    }
    60% {
        transform: translate(60px, 20px) rotate(10deg);
    }
}

@keyframes fade-out {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.btn-purchase {
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-purchase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-purchase:hover {
    background: var(--coral-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(228, 73, 71, 0.4);
}

.btn-purchase:hover::before {
    width: 300px;
    height: 300px;
}

.btn-purchase:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(228, 73, 71, 0.3);
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: 6rem 3rem;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.blob-frame {
    width: 280px;
    height: 280px;
    background: url('images/marzia.png') center/cover, linear-gradient(135deg, var(--coral-soft), var(--bg-soft), var(--white));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob 10s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blob-frame img {
    display: none;
}

.blob-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(231, 111, 90, 0.2);
    animation-play-state: paused;
}

@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.about-text h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-text h2:hover {
    color: var(--coral);
}

.about-text p {
    color: var(--text-soft);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-text .signature {
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--coral);
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.about-text .signature:hover {
    transform: translateX(10px);
    letter-spacing: 0.05em;
}

.hello-sun {
    width: 50px;
    height: auto;
    vertical-align: middle;
    margin-left: 8px;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding: 4rem 3rem 6rem;
    text-align: center;
    background: #FDF8F6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    transition: min-height 0.3s ease;
}

.contact.footer-peek {
    min-height: calc(100vh - 50px);
}

.contact h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.chat-icon {
    width: 50px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.contact h2:hover {
    color: var(--coral);
    transform: scale(1.05);
}

.contact p {
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-contact {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    text-decoration: none;
    position: relative;
    animation: contact-float 3s ease-in-out infinite;
}

@keyframes contact-float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.contact-btn-icon {
    width: 120px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.btn-contact:hover {
    animation-play-state: paused;
}

.btn-contact:hover .contact-btn-icon {
    transform: scale(1.1);
}

.btn-contact:active .contact-btn-icon {
    transform: scale(0.95);
}

/* ============================================
   Contact Carousel
   ============================================ */

.contact-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.carousel-slide h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.carousel-slide p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.carousel-slide .btn-contact {
    margin-top: 1rem;
}

/* Carousel navigation dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 20px;
    height: 20px;
    background: url('images/icons_animations/star.png') center/contain no-repeat;
    border: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    padding: 0;
    opacity: 0.4;
}

.carousel-dot:hover {
    opacity: 1;
    transform: scale(1.6) rotate(20deg);
}

.carousel-dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.carousel-dot.active:hover {
    transform: scale(1.6) rotate(20deg);
}

/* Carousel arrow buttons */
.carousel-arrows {
    position: absolute;
    top: 50%;
    left: -40px;
    right: -40px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--coral-soft);
    color: var(--coral);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--coral);
    color: white;
    border-color: var(--coral);
    transform: scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Slide-specific styles */
.faq-item {
    text-align: left;
    margin-bottom: 1rem;
}

.faq-item summary {
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('images/icons_animations/star.png') center/contain no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::before {
    transform: rotate(72deg) scale(1.2);
}

.faq-item summary:hover {
    color: var(--coral);
}

.faq-item summary:hover::before {
    transform: scale(1.3);
}

.faq-item p {
    margin: 0.5rem 0 0 1rem;
    font-size: 0.9rem;
}

.faq-item a {
    color: var(--coral);
    text-decoration: none;
}

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

.shipping-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 1rem;
}

.shipping-list li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--coral-soft);
    color: var(--text-soft);
    font-size: 0.8rem;
}

.shipping-list li:last-child {
    border-bottom: none;
}

.shipping-list strong {
    color: var(--text);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 36, 36, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    perspective: 1500px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Flipping Card Container */
.card-flip-container {
    width: 420px;
    max-width: 90vw;
    aspect-ratio: 7/9;
    position: relative;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.modal-overlay.active .card-front {
    animation: front-flip 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-overlay.active .card-back {
    animation: back-flip 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes front-flip {
    0% {
        transform: translateY(100px) rotateY(0deg) scale(0.5);
    }
    40% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
    100% {
        transform: translateY(0) rotateY(180deg) scale(1);
    }
}

@keyframes back-flip {
    0% {
        transform: translateY(100px) rotateY(-180deg) scale(0.5);
    }
    40% {
        transform: translateY(0) rotateY(-180deg) scale(1);
    }
    100% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card-front {
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.card-back {
    background: var(--bg-card);
    padding: 1.2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: rotateY(-180deg);
    position: relative;
}

.card-back-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
}

.card-back .payment-section,
.card-back .split-section {
    flex-shrink: 0;
}

.card-back .btn-checkout {
    margin-top: auto;
    flex-shrink: 0;
}

.support-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 0.3rem;
}

.btn-star {
    width: 32px;
    height: auto;
    vertical-align: middle;
    margin-left: 6px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg);
    border: none;
    font-size: 1.2rem;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

.card-back h2.card-back-title {
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-weight: 500;
    color: #E44947;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    text-align: center;
    margin-top: 0.3rem;
}

/* Payment Sliders */
.payment-section,
.split-section {
    margin-bottom: 0.8rem;
}

.payment-section label,
.split-section label {
    display: block;
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.price-display {
    text-align: center;
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1rem;
}

.price-display .currency {
    font-size: 1.5rem;
}

/* Custom Slider */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    margin: 0.75rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--coral);
    cursor: pointer;
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--coral);
    cursor: pointer;
    border: none;
}

.price-range-labels,
.split-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Price note */
.price-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Split Bar Slider */
.split-bar-container {
    margin: 0.6rem 0;
}

.split-bar {
    display: flex;
    align-items: center;
    height: 24px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: var(--border);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.artist-portion {
    background: var(--coral);
    height: 100%;
    transition: width 0.1s ease;
    border-radius: 12px 0 0 12px;
}

.charity-portion {
    background: var(--coral-soft);
    height: 100%;
    flex: 1;
    transition: width 0.1s ease;
    border-radius: 0 12px 12px 0;
}

.split-handle {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.2s ease;
}

.split-handle:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.split-handle:active {
    cursor: grabbing;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.split-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.split-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

.artist-label {
    color: var(--coral-deep);
    font-weight: 600;
}

.charity-label {
    color: var(--text-soft);
    font-weight: 600;
}

.charity-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Shipping Section */
.shipping-section {
    margin-bottom: 0.8rem;
}

.shipping-section label {
    display: block;
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.shipping-select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    margin-bottom: 0.6rem;
}

.shipping-select:focus {
    outline: none;
    border-color: var(--coral);
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-option:hover {
    border-color: var(--coral-soft);
    background: rgba(252, 204, 214, 0.2);
}

.shipping-option input[type="radio"] {
    accent-color: var(--coral);
}

.shipping-option input[type="radio"]:checked + .option-details {
    color: var(--coral-deep);
}

.option-details {
    display: flex;
    justify-content: space-between;
    flex: 1;
    font-size: 0.8rem;
}

.option-name {
    font-weight: 500;
}

.option-info {
    color: var(--text-soft);
}

.btn-checkout {
    width: 100%;
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.btn-checkout:hover {
    background: var(--coral-deep);
}

.demo-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Success Modal - Thank You Panel */
.card-thankyou {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: url('images/icons_animations/pattern_bg.jpg') center/cover no-repeat;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: rotateY(90deg);
    transition: none;
}

.card-thankyou.active {
    opacity: 1;
    pointer-events: auto;
    animation: thankyou-flip-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.25s;
}

@keyframes thankyou-flip-in {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.card-back.flipped {
    animation: back-flip-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes back-flip-out {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
}

.success-image {
    max-width: 220px;
    height: auto;
    margin-bottom: 1rem;
}

.card-thankyou p {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */

footer {
    text-align: center;
    padding: 3rem;
    background: var(--bg-soft);
    scroll-snap-align: none;
}

footer p {
    color: var(--text-soft);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.footer-links {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--coral);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   Success Overlay
   ============================================ */

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 36, 36, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

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

.success-content {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.success-content h2 {
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--coral);
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-soft);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.success-content .success-image {
    max-width: 180px;
    margin-bottom: 1rem;
}

/* Sold Badge */
.art-card.sold::after {
    content: 'SOLD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: var(--coral);
    color: white;
    padding: 0.5rem 2rem;
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-size: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.art-card.sold {
    opacity: 0.7;
}

/* Sold Out text in price area */
.sold-out-text {
    color: var(--coral);
    font-family: 'Mamabear', 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-left, .hero-right {
        text-align: center;
        justify-self: center;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .photo-frame {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .thumbnail-row {
        gap: 1rem;
    }

    .art-thumbnail {
        width: 80px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .card-stack {
        max-width: 320px;
    }

    .art-info {
        max-width: 320px;
        margin: 0 auto;
    }

    .art-info h1 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .blob-frame {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .photo-frame {
        width: 200px;
        height: 200px;
    }

    .art-preview {
        padding: 1.5rem;
    }

    .art-thumbnail {
        width: 60px;
    }

    .gallery {
        padding: 4rem 1.5rem;
    }

    .card-stack {
        max-width: 280px;
    }

    .art-info {
        max-width: 280px;
    }

    .art-info h1 {
        font-size: 1.8rem;
    }

    .modal {
        padding: 2rem 1.5rem;
    }

    .price-display {
        font-size: 2.5rem;
    }
}
