/* ppuzzle.works - Blobitecture Design System */
/* Colors: #fefcf8, #6a6055, #d4ede4, #ffd6e0, #e8d5f5, #fff4c2, #f8f3e8, #c8bfb0 */
/* Fonts: Syne (display), DM Sans (body), Bricolage Grotesque (accent) */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f8f3e8;
    color: #6a6055;
    overflow-x: hidden;
    position: relative;
}

/* ===== GRADIENT MESH BACKGROUND ===== */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(212, 237, 228, 0.6) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 75% 20%, rgba(255, 214, 224, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(232, 213, 245, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 10% 70%, rgba(255, 244, 194, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 90% 90% at 50% 50%, rgba(248, 243, 232, 1) 0%, rgba(254, 252, 248, 1) 100%);
    pointer-events: none;
}

/* ===== BLOB BACKGROUND LAYER (parallax) ===== */
.blob-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
}

.bg-blob {
    position: absolute;
    border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%;
    opacity: 0.25;
    animation: blobFloat 20s ease-in-out infinite;
}

.bg-blob-1 {
    width: 500px;
    height: 450px;
    background: radial-gradient(circle at 40% 40%, #d4ede4, transparent 70%);
    top: -100px;
    left: -50px;
    animation-delay: 0s;
}

.bg-blob-2 {
    width: 400px;
    height: 380px;
    background: radial-gradient(circle at 60% 30%, #ffd6e0, transparent 70%);
    top: 200px;
    right: -80px;
    border-radius: 45% 55% 50% 40% / 50% 45% 55% 50%;
    animation-delay: -5s;
}

.bg-blob-3 {
    width: 350px;
    height: 320px;
    background: radial-gradient(circle at 50% 50%, #e8d5f5, transparent 70%);
    bottom: 100px;
    left: 30%;
    border-radius: 55% 45% 40% 60% / 45% 55% 50% 45%;
    animation-delay: -10s;
}

.bg-blob-4 {
    width: 280px;
    height: 300px;
    background: radial-gradient(circle at 40% 60%, #fff4c2, transparent 70%);
    bottom: -50px;
    right: 20%;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 50%;
    animation-delay: -15s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(20px, -15px) rotate(3deg) scale(1.03); }
    50% { transform: translate(-10px, 10px) rotate(-2deg) scale(0.97); }
    75% { transform: translate(15px, 5px) rotate(1deg) scale(1.02); }
}

/* ===== CRYSTALLINE ACCENTS ===== */
.crystalline-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.crystal {
    position: absolute;
    opacity: 0.15;
    background: #c8bfb0;
}

.crystal-1 {
    width: 30px;
    height: 30px;
    top: 15%;
    right: 12%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: crystalSpin 30s linear infinite;
}

.crystal-2 {
    width: 20px;
    height: 20px;
    top: 40%;
    left: 8%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: crystalSpin 25s linear infinite reverse;
}

.crystal-3 {
    width: 16px;
    height: 16px;
    top: 70%;
    right: 25%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: crystalSpin 35s linear infinite;
}

.crystal-4 {
    width: 24px;
    height: 24px;
    top: 25%;
    left: 45%;
    clip-path: polygon(50% 0%, 100% 30%, 85% 100%, 15% 100%, 0% 30%);
    animation: crystalSpin 28s linear infinite reverse;
}

.crystal-5 {
    width: 18px;
    height: 18px;
    top: 85%;
    left: 15%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: crystalSpin 22s linear infinite;
}

.crystal-6 {
    width: 14px;
    height: 14px;
    top: 55%;
    right: 8%;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: crystalSpin 32s linear infinite reverse;
}

@keyframes crystalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== HERO SPLIT SCREEN ===== */
.hero-split {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.split-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(248, 243, 232, 0.85), rgba(212, 237, 228, 0.4));
}

.split-left-content {
    max-width: 500px;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #6a6055;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.title-dot {
    color: #ffd6e0;
}

.hero-subtitle {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: #c8bfb0;
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.hero-cta-wrap {
    display: flex;
    gap: 16px;
}

.btn-blob {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #6a6055;
    background: #fff4c2;
    border: none;
    padding: 14px 36px;
    border-radius: 50% 40% 55% 45% / 45% 55% 40% 50%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-blob:hover {
    background: #ffd6e0;
    border-radius: 45% 55% 40% 60% / 55% 40% 60% 45%;
    transform: scale(1.05);
}

.btn-blob-large {
    font-size: 1.15rem;
    padding: 18px 44px;
}

/* Blob Divider */
.blob-divider {
    position: absolute;
    top: 0;
    left: 45%;
    width: 15%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.divider-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
    background: linear-gradient(225deg, rgba(254, 252, 248, 0.9), rgba(232, 213, 245, 0.3));
}

.split-right-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
}

/* Hero Blob Art */
.hero-blob-art {
    position: relative;
    width: 100%;
    height: 100%;
}

.art-blob {
    position: absolute;
    border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%;
    animation: artBlobPulse 8s ease-in-out infinite;
}

.art-blob-1 {
    width: 280px;
    height: 260px;
    background: linear-gradient(135deg, #d4ede4, #e8d5f5);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.art-blob-2 {
    width: 200px;
    height: 220px;
    background: linear-gradient(135deg, #ffd6e0, #fff4c2);
    top: 35%;
    left: 35%;
    border-radius: 45% 55% 50% 40% / 50% 45% 55% 50%;
    animation-delay: -2.5s;
}

.art-blob-3 {
    width: 140px;
    height: 150px;
    background: linear-gradient(135deg, #fff4c2, #d4ede4);
    top: 15%;
    right: 5%;
    border-radius: 55% 45% 40% 60% / 45% 55% 50% 45%;
    animation-delay: -5s;
}

@keyframes artBlobPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%;
    }
    33% {
        transform: scale(1.05) rotate(3deg);
        border-radius: 45% 55% 40% 60% / 50% 45% 55% 50%;
    }
    66% {
        transform: scale(0.95) rotate(-2deg);
        border-radius: 55% 45% 50% 40% / 45% 55% 50% 45%;
    }
}

/* ===== SECTIONS COMMON ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #6a6055;
    line-height: 1.15;
    margin-bottom: 24px;
}

.section-heading-center {
    text-align: center;
    margin-bottom: 50px;
}

.heading-accent {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    color: #c8bfb0;
    font-style: italic;
}

.body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #6a6055;
    margin-bottom: 16px;
    font-weight: 300;
}

/* ===== ABOUT SECTION ===== */
.section-about {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(254, 252, 248, 0.5), rgba(248, 243, 232, 0.8));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
    height: 400px;
}

.about-blob-cluster {
    position: relative;
    width: 100%;
    height: 100%;
}

.cluster-blob {
    position: absolute;
    border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%;
    animation: clusterFloat 12s ease-in-out infinite;
}

.cluster-blob-1 {
    width: 260px;
    height: 240px;
    background: linear-gradient(135deg, #d4ede4, rgba(212, 237, 228, 0.4));
    top: 10%;
    left: 5%;
}

.cluster-blob-2 {
    width: 200px;
    height: 210px;
    background: linear-gradient(135deg, #ffd6e0, rgba(255, 214, 224, 0.4));
    top: 30%;
    left: 30%;
    border-radius: 45% 55% 50% 40% / 50% 45% 55% 50%;
    animation-delay: -4s;
}

.cluster-blob-3 {
    width: 150px;
    height: 160px;
    background: linear-gradient(135deg, #e8d5f5, rgba(232, 213, 245, 0.4));
    bottom: 5%;
    right: 10%;
    border-radius: 55% 45% 40% 60% / 45% 55% 50% 45%;
    animation-delay: -8s;
}

@keyframes clusterFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -8px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(8px, 3px); }
}

.about-text {
    position: relative;
    z-index: 2;
}

/* ===== SERVICES SECTION ===== */
.section-services {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(248, 243, 232, 0.6), rgba(212, 237, 228, 0.15), rgba(248, 243, 232, 0.6));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: rgba(254, 252, 248, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50% 40% 55% 45% / 10% 10% 10% 10%;
    padding: 50px 40px 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 244, 194, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-radius: 45% 55% 40% 60% / 12% 8% 12% 8%;
    transform: translateY(-8px) scale(1.02);
}

.service-blob-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.service-svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #6a6055;
    margin-bottom: 12px;
}

.service-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #c8bfb0;
    font-weight: 400;
}

/* ===== SHOWCASE SECTION ===== */
.section-showcase {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(248, 243, 232, 0.4), rgba(232, 213, 245, 0.1), rgba(248, 243, 232, 0.4));
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.showcase-item {
    position: relative;
    border-radius: 45% 55% 50% 40% / 8% 12% 8% 12%;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0.9);
}

.showcase-item.visible {
    opacity: 1;
    transform: scale(1);
}

.showcase-item:hover {
    border-radius: 55% 45% 40% 60% / 12% 8% 12% 8%;
    transform: scale(1.03);
}

.showcase-item-large {
    grid-column: span 2;
    height: 320px;
}

.showcase-blob-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.showcase-item:hover .showcase-blob-bg {
    transform: scale(1.1);
}

.showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(106, 96, 85, 0.6), transparent);
    z-index: 2;
}

.showcase-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(254, 252, 248, 0.8);
    display: block;
    margin-bottom: 6px;
}

.showcase-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fefcf8;
}

/* ===== PROCESS SECTION ===== */
.section-process {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(248, 243, 232, 0.6), rgba(255, 244, 194, 0.1), rgba(248, 243, 232, 0.6));
}

.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-blob {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d4ede4, #e8d5f5);
    border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: stepBlobMorph 6s ease-in-out infinite;
    transition: all 0.4s ease;
}

.process-step:hover .step-blob {
    background: linear-gradient(135deg, #ffd6e0, #fff4c2);
    transform: scale(1.1);
}

@keyframes stepBlobMorph {
    0%, 100% { border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%; }
    50% { border-radius: 45% 55% 40% 60% / 50% 45% 55% 50%; }
}

.step-number {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #6a6055;
}

.step-title {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #6a6055;
    margin-bottom: 10px;
}

.step-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c8bfb0;
    font-weight: 300;
}

.process-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d4ede4, #c8bfb0);
    margin-top: 65px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===== CONTACT SECTION ===== */
.section-contact {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(248, 243, 232, 0.4), rgba(255, 214, 224, 0.1), rgba(248, 243, 232, 0.4));
}

.contact-wrap {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-blob-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.contact-blob {
    position: absolute;
    border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%;
    opacity: 0.2;
    animation: clusterFloat 15s ease-in-out infinite;
}

.contact-blob-1 {
    width: 300px;
    height: 280px;
    background: radial-gradient(circle, #ffd6e0, transparent 70%);
    top: -80px;
    left: -100px;
}

.contact-blob-2 {
    width: 250px;
    height: 260px;
    background: radial-gradient(circle, #d4ede4, transparent 70%);
    bottom: -80px;
    right: -80px;
    border-radius: 45% 55% 50% 40% / 50% 45% 55% 50%;
    animation-delay: -7s;
}

.contact-content {
    position: relative;
    z-index: 2;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #6a6055;
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fefcf8;
}

.footer-logo .title-dot {
    color: #ffd6e0;
}

.footer-tagline {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.9rem;
    color: #c8bfb0;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #c8bfb0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fefcf8;
}

.footer-copy p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: #c8bfb0;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
    }

    .split-left,
    .split-right {
        flex: none;
        min-height: 50vh;
    }

    .blob-divider {
        position: absolute;
        top: auto;
        bottom: 45%;
        left: 0;
        width: 100%;
        height: 15%;
        transform: rotate(90deg);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        height: 300px;
    }

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

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

    .showcase-item-large {
        grid-column: span 1;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        width: 2px;
        height: 30px;
        margin-top: 0;
        background: linear-gradient(180deg, #d4ede4, #c8bfb0);
    }
}

@media (max-width: 600px) {
    .section-container {
        padding: 0 20px;
    }

    .split-left,
    .split-right {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 35px 25px 30px;
    }
}
