/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #faf8f5;
    --color-surface: #ffffff;
    --color-text: #2c2c2c;
    --color-text-muted: #6b6b6b;
    --color-accent: #8b5e3c;
    --color-accent-light: #c9a96e;
    --color-border: #e8e4df;
    --color-cream: #f5f0ea;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: #6d4a2f;
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 2px;
}

.btn-small:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-text);
    margin-right: auto;
}

.logo span {
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin-right: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.cart-btn {
    position: relative;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 8px;
    padding: 8px;
}

.cart-btn:hover {
    color: var(--color-accent);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
}

/* ===== Cart Sidebar ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 500px;
    max-width: 94vw;
    max-height: 75vh;
    background: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.5s, opacity 0.3s ease;
}

.cart-sidebar.open {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s, opacity 0.3s ease;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--color-text);
}

.cart-close {
    font-size: 2rem;
    color: var(--color-text-muted);
    transition: color var(--transition), transform var(--transition);
    line-height: 1;
}

.cart-close:hover {
    color: var(--color-text);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.cart-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 40px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(20px);
    animation: cartItemIn 0.4s ease forwards;
}

.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.2s; }
.cart-item:nth-child(3) { animation-delay: 0.3s; }
.cart-item:nth-child(4) { animation-delay: 0.4s; }
.cart-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes cartItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-info h4 {
    font-size: 1.05rem;
    font-family: var(--font-display);
    margin-bottom: 4px;
    color: var(--color-text);
}

.cart-item-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 500;
}

.cart-item-remove {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-left: 12px;
    transition: color var(--transition), transform var(--transition);
}

.cart-item-remove:hover {
    color: #e74c3c;
    transform: scale(1.3);
}

.cart-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    border-radius: 0 0 0 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--color-text);
}

.cart-total-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-accent);
}

.cart-checkout {
    width: 100%;
    text-align: center;
}

/* ===== Checkout Panel ===== */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.checkout-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.checkout-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 520px;
    max-width: 94vw;
    max-height: 85vh;
    background: #ffffff;
    z-index: 3001;
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.5s, opacity 0.3s ease;
}

.checkout-panel.open {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s, opacity 0.3s ease;
}

.checkout-form {
    padding: 20px 28px 28px;
}

.checkout-form .form-group {
    margin-bottom: 16px;
}

.checkout-form .form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    color: var(--color-text);
    transition: border-color var(--transition);
}

.checkout-form .form-group input:focus,
.checkout-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    font-size: 1rem;
}

.checkout-total {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-accent);
}

.checkout-pay-btn {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.checkout-close {
    font-size: 2rem;
    color: var(--color-text-muted);
    transition: color var(--transition), transform var(--transition);
    line-height: 1;
}

.checkout-close:hover {
    color: var(--color-text);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .checkout-panel {
        width: 100%;
        max-width: 100vw;
        border-radius: 16px 16px 0 0;
    }
    .checkout-form-row {
        grid-template-columns: 1fr;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
    overflow: hidden;
}

/* Animated colour blobs */
.hero-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #c9a96e, transparent 70%);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #d4956a, transparent 70%);
    bottom: -50px;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #8b5e3c, transparent 70%);
    top: 30%;
    left: 40%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #6bb5c9, transparent 70%);
    top: -80px;
    left: -100px;
    animation-delay: 1s;
    animation-duration: 9s;
    opacity: 0.3;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Paint drips */
.paint-drips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.drip {
    position: absolute;
    top: -10px;
    animation: dripDown 3s ease-in forwards;
    opacity: 0;
}

.drip-1 {
    left: 15%;
    width: 30px;
    animation-delay: 2.5s;
}

.drip-2 {
    right: 25%;
    width: 20px;
    animation-delay: 3s;
}

.drip-3 {
    left: 60%;
    width: 24px;
    animation-delay: 3.5s;
}

@keyframes dripDown {
    0% { transform: translateY(-100%); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(120px); opacity: 0.6; }
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 440px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-frame {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3/4;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.hero-painting {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1px;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Gallery ===== */
.gallery-section {
    padding: 100px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.painting-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition);
}

.painting-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.painting-image {
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}

.painting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.painting-card:hover .painting-image img {
    transform: scale(1.03);
}

.painting-placeholder {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.painting-info {
    padding: 24px;
}

.painting-info h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.painting-medium {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.painting-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.painting-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* ===== About ===== */
.about-section {
    padding: 100px 40px;
    background: var(--color-cream);
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 200px;
    position: relative;
    top: -30px;
    left: 200px;
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    background-color: var(--color-cream);
    border: 3px solid var(--color-accent-light);
    box-shadow: 8px 8px 0px var(--color-accent), 0 20px 40px rgba(139, 94, 60, 0.15);
    padding: 6px;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 14px;
    line-height: 1.8;
}

/* ===== Testimonials ===== */
.testimonials-section {
    padding: 100px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 36px;
    border-radius: 4px;
}

.testimonial-card p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* ===== Contact ===== */
.contact-section {
    padding: 100px 40px;
    background: var(--color-cream);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-text);
    color: #fff;
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer .logo {
    color: #fff;
    margin-bottom: 12px;
    display: inline-block;
}

.footer .logo span {
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-weight: 400;
}

.footer-links a,
.footer-social a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 4px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-subtext {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text-muted);
    font-style: italic;
    display: block;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInSoft 0.8s ease 0.5s forwards;
}

@keyframes fadeInSoft {
    to { opacity: 1; }
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    animation: loaderFill 2s ease-in-out forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== Particles Canvas ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: translateY(40px) rotate(3deg);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rotate.active {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Stagger children */
.stagger-children .painting-card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.active .painting-card:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0) scale(1); }
.stagger-children.active .painting-card:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0) scale(1); }
.stagger-children.active .painting-card:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0) scale(1); }
.stagger-children.active .painting-card:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0) scale(1); }
.stagger-children.active .painting-card:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0) scale(1); }

/* Testimonial stagger */
.stagger-testimonials .testimonial-card {
    opacity: 0;
    transform: translateY(40px) rotate(-2deg);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-testimonials.active .testimonial-card:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateY(0) rotate(0); }
.stagger-testimonials.active .testimonial-card:nth-child(2) { transition-delay: 0.3s; opacity: 1; transform: translateY(0) rotate(0); }
.stagger-testimonials.active .testimonial-card:nth-child(3) { transition-delay: 0.45s; opacity: 1; transform: translateY(0) rotate(0); }

/* Hero entrance animation */
.hero-content {
    animation: heroSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-visual {
    animation: heroFrameIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFrameIn {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(3deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Floating animation for hero frame */
.hero-frame {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Parallax text shimmer */
.hero-title {
    background: linear-gradient(90deg, var(--color-text) 0%, var(--color-accent) 50%, var(--color-text) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Smooth section divider line animation */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 2px;
    background: var(--color-accent-light);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .section-header h2::after,
.section-header.active h2::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== Painting card enhanced hover */
.painting-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.painting-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

/* Image clip reveal base */
.painting-image {
    overflow: hidden;
}

/* Testimonial card hover lift */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--color-accent-light);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent-light);
}

/* Smooth cursor trail effect on gallery */
.gallery-grid {
    perspective: 1000px;
}

/* Contact form fields animation */
.contact-form .form-group {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-form.active .form-group:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.contact-form.active .form-group:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.contact-form.active .form-group:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

.contact-form.active .form-row {
    opacity: 1;
    transform: translateY(0);
}

.contact-form .form-row {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.contact-form.active .btn {
    opacity: 1;
    transform: translateY(0);
}

.contact-form .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-blobs .blob {
        width: 200px;
        height: 200px;
    }

    .paint-drips {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 30px 60px;
        min-height: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero-frame {
        max-width: 300px;
    }

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

    .about-image {
        margin: 0 auto;
        max-width: 180px;
        position: static;
        top: 0;
        left: 0;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .gallery-section,
    .testimonials-section {
        padding: 60px 24px;
    }

    .about-section,
    .contact-section {
        padding: 60px 24px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
        border-radius: 16px 16px 0 0;
    }
}

/* ===== Mobile Menu Open State ===== */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 24px 40px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
}
