/* Artistic Homepage Styles */

/* Paint Blob Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-5deg); }
}

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

@keyframes paint-drip {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    100% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

@keyframes brush-stroke {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    20% { opacity: 1; }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Artistic Hero Section */
.hero-artistic {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.canvas-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.paint-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.paint-blob {
    position: absolute;
    background: linear-gradient(45deg, #9ca3af, #6b7280);
    filter: blur(40px);
    opacity: 0.3;
    animation: float 10s ease-in-out infinite, morph 15s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    animation-delay: 2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: 50%;
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    animation-delay: 4s;
}

/* Brush Stroke Title */
.hero-title-artistic {
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
    z-index: 2;
}

.brush-stroke-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: -1;
}

.brush-stroke-path {
    stroke: #9ca3af;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: brush-stroke 2s ease forwards;
}

/* Scattered Gallery Wall */
.gallery-wall {
    position: relative;
    padding: 6rem 2rem;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    min-height: 100vh;
}

.gallery-wall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0 10 Q 25 0 50 10 T 100 10" fill="white"/></svg>');
    background-size: 100px 100%;
    background-repeat: repeat-x;
}

.frame-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 800px;
}

.artwork-frame {
    position: absolute;
    background: white;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.1),
        inset 0 0 0 10px white,
        inset 0 0 0 11px #e5e7eb;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.artwork-frame:hover {
    transform: rotate(0deg) scale(1.05) !important;
    z-index: 10;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.2),
        inset 0 0 0 10px white,
        inset 0 0 0 11px #9ca3af;
}

.frame-1 {
    width: 280px;
    height: 350px;
    top: 10%;
    left: 5%;
    transform: rotate(-5deg);
}

.frame-2 {
    width: 320px;
    height: 320px;
    top: 15%;
    left: 30%;
    transform: rotate(3deg);
}

.frame-3 {
    width: 250px;
    height: 380px;
    top: 8%;
    right: 25%;
    transform: rotate(-2deg);
}

.frame-4 {
    width: 340px;
    height: 280px;
    bottom: 20%;
    left: 10%;
    transform: rotate(4deg);
}

.frame-5 {
    width: 300px;
    height: 300px;
    bottom: 25%;
    right: 15%;
    transform: rotate(-3deg);
}

.frame-6 {
    width: 260px;
    height: 340px;
    top: 45%;
    left: 45%;
    transform: rotate(2deg);
}

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

.frame-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.artwork-frame:hover .frame-label {
    opacity: 1;
}

/* Paint Splatter Divider */
.paint-splatter-divider {
    position: relative;
    height: 150px;
    margin: 4rem 0;
    overflow: hidden;
}

.paint-splatter {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 150"><g fill="%239ca3af" opacity="0.1"><circle cx="100" cy="50" r="40"/><circle cx="250" cy="100" r="25"/><circle cx="400" cy="30" r="35"/><circle cx="600" cy="80" r="50"/><circle cx="800" cy="40" r="30"/><circle cx="1000" cy="90" r="45"/><circle cx="1150" cy="60" r="35"/></g></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Torn Paper Effect */
.torn-paper-edge {
    position: relative;
    margin-top: -2px;
}

.torn-paper-edge::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><path d="M0 10 L5 8 L10 10 L15 7 L20 10 L25 8 L30 10 L35 9 L40 10 L45 8 L50 10 L55 7 L60 10 L65 8 L70 10 L75 9 L80 10 L85 8 L90 10 L95 7 L100 10" fill="white"/></svg>');
    background-size: 100px 100%;
    background-repeat: repeat-x;
}

/* Paint Drip from Navbar */
.navbar::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 15px;
    height: 20px;
    background: #9ca3af;
    border-radius: 0 0 50% 50%;
    animation: paint-drip 1s ease-out 0.5s both;
}

/* Interactive Color Palette */
.color-palette-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
}

.color-dot-interactive {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.color-dot-interactive:hover {
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Paint Brush Cursor */
.paint-cursor {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M8 24 L24 8 L26 10 L10 26 Z" fill="%23333"/><circle cx="8" cy="24" r="4" fill="%239ca3af"/></svg>') 4 24, auto;
}

/* Text Paint Reveal Animation */
@keyframes paint-reveal {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

.paint-text {
    display: inline-block;
    background: linear-gradient(90deg, #9ca3af 50%, transparent 50%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left;
    animation: paint-reveal 1.5s ease forwards;
    animation-delay: 0.5s;
    padding: 0 0.5rem;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Studio Elements */
.coffee-stain {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.05;
    pointer-events: none;
    background: radial-gradient(ellipse at center, #8b7355 0%, transparent 70%);
    border-radius: 50%;
}

.sketch-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        #333 10px,
        #333 11px
    );
}

/* Notebook Paper Background */
.notebook-section {
    position: relative;
    background:
        linear-gradient(transparent 29px, #e5e7eb 29px, #e5e7eb 30px, transparent 30px),
        linear-gradient(90deg, #fca5a5 0px, #fca5a5 2px, transparent 2px),
        white;
    background-size: 100% 30px, 30px 100%;
    background-position: 0 0, 30px 0;
    padding: 3rem;
    margin: 2rem 0;
}

.notebook-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 35px;
    bottom: 0;
    width: 2px;
    background: #fca5a5;
}

/* Hand-drawn Arrows */
.hand-arrow {
    stroke: #333;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 5, 5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-wall {
        padding: 4rem 1rem;
    }

    .frame-container {
        height: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }

    .artwork-frame {
        position: relative !important;
        width: 100% !important;
        height: 250px !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .hero-title-artistic {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .color-palette-float {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
}