/* haru.club — Memphis Bold Shapes Portfolio */
/* Palette: #fef9c3 (bg), #ec4899 (pink), #3b82f6 (blue), #22c55e (green), #f97316 (orange), #1a1a1a (text/border) */

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

body {
    background: #fef9c3;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =============================================
   HERO / BURST ZONE
   ============================================= */

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(44px, 10vw, 64px);
    color: #1a1a1a;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    opacity: 0.65;
    position: relative;
    z-index: 2;
    margin-top: 0.4rem;
}

/* =============================================
   GEOMETRIC SHAPES (scattered)
   ============================================= */

.geo {
    position: absolute;
    border: 2px solid #1a1a1a;
    z-index: 1;
}

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

.geo.square {
    border-radius: 0;
}

.geo.tri {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Color fills */
.geo.pink { background: #ec4899; }
.geo.blue { background: #3b82f6; }
.geo.green { background: #22c55e; }
.geo.orange { background: #f97316; }

/* Triangles use clip-path so need background override */
.geo.tri.pink { background: #ec4899; }
.geo.tri.blue { background: #3b82f6; }
.geo.tri.green { background: #22c55e; }
.geo.tri.orange { background: #f97316; }

/* Triangle outline simulation via box-shadow */
.geo.tri::after {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: inherit;
}

/* =============================================
   SQUIGGLY SVG LINES
   ============================================= */

.squiggle {
    position: absolute;
    z-index: 1;
    opacity: 0.7;
}

.squiggle-1 {
    width: 200px;
    top: 30%;
    right: 5%;
    transform: rotate(-8deg);
}

.squiggle-2 {
    width: 160px;
    bottom: 35%;
    left: 4%;
    transform: rotate(12deg);
}

.squiggle-3 {
    width: 120px;
    top: 65%;
    right: 22%;
    transform: rotate(-15deg);
}

/* =============================================
   OVERFLOW CIRCLE (Memphis playful overflow)
   ============================================= */

.overflow-circle {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    background: #3b82f6;
    opacity: 0.15;
    bottom: -100px;
    right: -80px;
    z-index: 0;
}

/* =============================================
   MEMBER SHOWCASES
   ============================================= */

#members {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.member-card {
    padding: 2rem 2rem 1.5rem;
    border: 2px solid #1a1a1a;
    background: #fef9c3;
    position: relative;
    overflow: hidden;
}

/* Dot-pattern Memphis texture */
.dot-pattern {
    background:
        radial-gradient(circle, #1a1a1a 1px, transparent 1px),
        #fef9c3;
    background-size: 16px 16px;
}

/* Rotation tilts */
.tilt-neg { transform: rotate(-2deg); }
.tilt-pos { transform: rotate(2deg); }

/* Colored left borders */
.border-pink { border-left: 6px solid #ec4899; }
.border-blue { border-left: 6px solid #3b82f6; }
.border-green { border-left: 6px solid #22c55e; }
.border-orange { border-left: 6px solid #f97316; }

/* Card content */
.member-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    opacity: 0.5;
    display: block;
}

.member-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #1a1a1a;
    margin: 0.4rem 0 0.6rem;
}

.member-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    opacity: 0.75;
    line-height: 1.7;
}

/* Card geometric accent */
.card-accent {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 3;
}

.geo-accent.circle {
    width: 44px;
    height: 44px;
}

.geo-accent.tri {
    width: 48px;
    height: 48px;
}

.geo-accent.square {
    width: 36px;
    height: 36px;
}

/* Zigzag decorative accents */
.zigzag {
    height: 8px;
    margin-top: 1rem;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 6px,
        currentColor 6px,
        currentColor 12px
    );
    opacity: 0.35;
}

.pink-zag { color: #ec4899; }
.green-zag { color: #22c55e; }
.blue-zag { color: #3b82f6; }
.orange-zag { color: #f97316; }

/* =============================================
   SHAPE PARADE
   ============================================= */

#parade {
    padding: 3rem 0;
    overflow: hidden;
    background: #fef9c3;
    border-top: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
}

.parade-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    animation: parade-scroll 20s linear infinite;
    width: max-content;
}

@keyframes parade-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.p-shape {
    flex-shrink: 0;
    border: 2px solid #1a1a1a;
}

.p-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.p-square {
    width: 40px;
    height: 40px;
}

.p-tri {
    width: 52px;
    height: 52px;
    border: none;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Parade shape colors */
.p-shape.pink { background: #ec4899; }
.p-shape.blue { background: #3b82f6; }
.p-shape.green { background: #22c55e; }
.p-shape.orange { background: #f97316; }

/* =============================================
   SPRING SIGN-OFF
   ============================================= */

#spring {
    background: #ec4899;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.spring-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fef9c3;
    border: 2px solid #1a1a1a;
    margin: 0 auto 2rem;
}

.spring-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    color: #fef9c3;
}

.spring-brand {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #fef9c3;
    opacity: 0.65;
    display: block;
    margin-top: 0.5rem;
}

/* Spring section decorations */
.spring-deco-1 {
    width: 32px;
    height: 32px;
    top: 12%;
    left: 8%;
    opacity: 0.3;
    border-color: #fef9c3;
}

.spring-deco-2 {
    top: 18%;
    right: 10%;
    opacity: 0.3;
    width: 40px;
    height: 40px;
}

.spring-deco-2.tri {
    background: #fef9c3;
}

.spring-deco-3 {
    width: 28px;
    height: 28px;
    bottom: 14%;
    right: 16%;
    opacity: 0.3;
    border-color: #fef9c3;
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Tilted cards need transform preserved when visible */
.member-card.tilt-neg.fade-in.visible {
    transform: rotate(-2deg);
}

.member-card.tilt-pos.fade-in.visible {
    transform: rotate(2deg);
}

/* =============================================
   FLOATING ANIMATION FOR HERO SHAPES
   ============================================= */

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

#hero .geo {
    animation: float-gentle 4s ease-in-out infinite;
}

#hero .geo:nth-child(2) { animation-delay: -0.5s; animation-duration: 4.5s; }
#hero .geo:nth-child(3) { animation-delay: -1s; animation-duration: 5s; }
#hero .geo:nth-child(4) { animation-delay: -1.5s; animation-duration: 3.8s; }
#hero .geo:nth-child(5) { animation-delay: -2s; animation-duration: 4.2s; }
#hero .geo:nth-child(6) { animation-delay: -0.8s; animation-duration: 5.2s; }
#hero .geo:nth-child(7) { animation-delay: -1.3s; animation-duration: 3.6s; }
#hero .geo:nth-child(8) { animation-delay: -2.5s; animation-duration: 4.8s; }
#hero .geo:nth-child(9) { animation-delay: -0.3s; animation-duration: 5.5s; }
#hero .geo:nth-child(10) { animation-delay: -1.8s; animation-duration: 4.1s; }

/* Squiggles gentle drift */
@keyframes squiggle-drift {
    0%, 100% { transform: translateX(0) rotate(var(--rot)); }
    50% { transform: translateX(8px) rotate(calc(var(--rot) + 3deg)); }
}

.squiggle-1 { --rot: -8deg; animation: squiggle-drift 6s ease-in-out infinite; }
.squiggle-2 { --rot: 12deg; animation: squiggle-drift 7s ease-in-out infinite; animation-delay: -2s; }
.squiggle-3 { --rot: -15deg; animation: squiggle-drift 5.5s ease-in-out infinite; animation-delay: -3s; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 600px) {
    #members {
        padding: 3rem 1rem 1.5rem;
        gap: 2rem;
    }

    .member-card {
        padding: 1.5rem;
    }

    .parade-track {
        gap: 1.5rem;
    }

    .overflow-circle {
        width: 180px;
        height: 180px;
        bottom: -60px;
        right: -50px;
    }

    #spring {
        padding: 4rem 1.5rem;
    }

    .spring-circle {
        width: 100px;
        height: 100px;
    }
}
