/* ==============================
   ppuzzl.com - Memphis Design System
   Colors:
     Bubblegum Pink: #FF6B9D
     Electric Yellow: #FFE135
     Turquoise: #00CED1
     Soft Black: #2D2D2D
     Cream: #FFF8F0
     Lavender: #B388FF
   Fonts:
     Headings: Outfit (800/700)
     Body: Space Grotesk (400/600)
   ============================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #2D2D2D;
    background-color: #FFF8F0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #2D2D2D;
}

p {
    margin-bottom: 1rem;
}

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

/* === HERO SECTION === */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #FFF8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-tilted-rect {
    position: absolute;
    width: 55vw;
    height: 65vh;
    background-color: #FF6B9D;
    transform: rotate(-12deg);
    top: 12%;
    left: 18%;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 8px 12px 0 #B388FF;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 800;
    color: #2D2D2D;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #2D2D2D;
    margin-top: 0.5rem;
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

/* === FLOATING SHAPES === */
.shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.shape-circle {
    border-radius: 50%;
}

.shape-triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-rect {
    border-radius: 6px;
}

/* Hero shapes */
.shape-1 {
    width: 80px;
    height: 80px;
    background-color: #FFE135;
    top: 10%;
    left: 8%;
    animation: drift 6s ease-in-out infinite, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.shape-2 {
    width: 50px;
    height: 50px;
    background-color: #00CED1;
    top: 18%;
    right: 12%;
    animation: drift 8s ease-in-out infinite reverse, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.shape-3 {
    width: 70px;
    height: 70px;
    background-color: #B388FF;
    bottom: 20%;
    left: 6%;
    animation: drift 7s ease-in-out infinite, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.shape-4 {
    width: 40px;
    height: 40px;
    background-color: #FF6B9D;
    bottom: 15%;
    right: 8%;
    animation: drift 5s ease-in-out infinite reverse, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.shape-5 {
    width: 55px;
    height: 55px;
    background-color: #FFE135;
    top: 45%;
    right: 5%;
    animation: drift 9s ease-in-out infinite, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.shape-6 {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #00CED1, #B388FF);
    top: 6%;
    left: 55%;
    animation: drift 7s ease-in-out infinite reverse, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both;
}

.shape-7 {
    width: 60px;
    height: 30px;
    background-color: #B388FF;
    bottom: 30%;
    left: 30%;
    transform: rotate(25deg);
    animation: drift 8s ease-in-out infinite, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

.shape-8 {
    width: 25px;
    height: 25px;
    background-color: #FFE135;
    top: 30%;
    left: 3%;
    animation: drift 6s ease-in-out infinite reverse, bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both;
}

/* === SQUIGGLY DIVIDERS === */
.squiggly-divider {
    width: 100%;
    line-height: 0;
    padding: 1rem 0;
    background-color: #FFF8F0;
}

.squiggly-divider svg {
    width: 100%;
    height: 40px;
}

/* === CONTENT SECTIONS === */
.content-section {
    position: relative;
    padding: 5rem 6%;
    background-color: #FFF8F0;
    overflow: hidden;
}

.section-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.section-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #2D2D2D;
}

.section-text p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #2D2D2D;
}

/* === ACCENT BLOBS === */
.section-accent {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accent-turquoise {
    background: radial-gradient(circle at 30% 40%, #00CED1, #B388FF);
}

.accent-yellow {
    background: radial-gradient(circle at 70% 60%, #FFE135, #FF6B9D);
}

.accent-pink {
    background: radial-gradient(circle at 40% 50%, #FF6B9D, #FFE135);
}

.accent-shape-blob {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: drift 5s ease-in-out infinite;
}

/* === PUZZLE CARDS === */
.puzzle-cards {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.puzzle-card {
    flex: 1;
    min-width: 140px;
    padding: 1.5rem 1rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 4px 6px 0 #2D2D2D;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.puzzle-card:hover {
    transform: translateY(-6px) rotate(2deg);
}

.card-pink {
    background-color: #FF6B9D;
    color: #FFF8F0;
}

.card-yellow {
    background-color: #FFE135;
    color: #2D2D2D;
}

.card-lavender {
    background-color: #B388FF;
    color: #FFF8F0;
}

.card-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.card-pieces {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* === STEPS LIST === */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #FF6B9D;
    line-height: 1;
    flex-shrink: 0;
}

.step-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #2D2D2D;
}

.step-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* === CTA SECTION === */
#cta {
    text-align: center;
    padding: 6rem 6%;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 5;
}

.cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #2D2D2D;
    margin-bottom: 0.8rem;
}

.cta-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: #2D2D2D;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    background-color: #FF6B9D;
    color: #FFF8F0;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    box-shadow: 4px 6px 0 #2D2D2D;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-4px) rotate(-2deg);
    box-shadow: 6px 10px 0 #2D2D2D;
}

/* CTA floating shapes */
.cta-shape-1 {
    width: 90px;
    height: 90px;
    background-color: #00CED1;
    top: 15%;
    left: 5%;
    animation: drift 7s ease-in-out infinite;
}

.cta-shape-2 {
    width: 60px;
    height: 60px;
    background-color: #FFE135;
    bottom: 20%;
    right: 8%;
    animation: drift 6s ease-in-out infinite reverse;
}

.cta-shape-3 {
    width: 50px;
    height: 25px;
    background-color: #B388FF;
    top: 30%;
    right: 15%;
    transform: rotate(15deg);
    animation: drift 8s ease-in-out infinite;
}

/* === FOOTER === */
#footer {
    background-color: #2D2D2D;
    color: #FFF8F0;
    text-align: center;
    padding: 2.5rem 6%;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* === ANIMATIONS === */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    80% {
        transform: scale(0.97) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* Bounce-in for scroll-triggered elements */
.bounce-in {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays for children */
.bounce-in.visible .step-item:nth-child(1) {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.bounce-in.visible .step-item:nth-child(2) {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.bounce-in.visible .step-item:nth-child(3) {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.bounce-in.visible .puzzle-card:nth-child(1) {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.bounce-in.visible .puzzle-card:nth-child(2) {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.bounce-in.visible .puzzle-card:nth-child(3) {
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .grid-1-2,
    .grid-3-1 {
        grid-template-columns: 1fr;
    }

    .section-accent {
        height: 200px;
    }

    .hero-tilted-rect {
        width: 80vw;
        height: 50vh;
        left: 5%;
    }

    .puzzle-cards {
        flex-direction: column;
    }

    .puzzle-card {
        min-width: auto;
    }

    .content-section {
        padding: 3rem 5%;
    }

    .step-number {
        font-size: 1.5rem;
    }
}
