/* miris.xyz — Memphis Bold Shapes Portfolio */

:root {
    --bg: #FFF5E6;
    --coral: #FF6B6B;
    --mint: #4ECDC4;
    --lemon: #FFE66D;
    --seafoam: #A8E6CF;
    --text: #1A1A1A;
    --shadow: #1A1A1A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* Terrazzo Pattern Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle 3px at 15% 20%, #FF6B6B 100%, transparent),
        radial-gradient(circle 2px at 35% 45%, #4ECDC4 100%, transparent),
        radial-gradient(circle 4px at 55% 15%, #FFE66D 100%, transparent),
        radial-gradient(circle 2px at 75% 60%, #A8E6CF 100%, transparent),
        radial-gradient(circle 3px at 25% 75%, #FF6B6B 100%, transparent),
        radial-gradient(circle 2px at 85% 30%, #4ECDC4 100%, transparent),
        radial-gradient(circle 3px at 45% 85%, #FFE66D 100%, transparent),
        radial-gradient(circle 2px at 65% 40%, #A8E6CF 100%, transparent),
        radial-gradient(circle 2px at 10% 55%, #FF6B6B 100%, transparent),
        radial-gradient(circle 3px at 90% 80%, #4ECDC4 100%, transparent);
    opacity: 0.15;
}

/* Memphis Background Shapes */
#memphis-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.memphis-shape {
    position: absolute;
    opacity: 0.2;
    transition: transform 0.3s ease;
}

.shape-zigzag { top: 10%; left: 5%; width: 80px; transform: rotate(15deg); }
.shape-circle { top: 20%; right: 10%; width: 60px; transform: rotate(-10deg); }
.shape-triangle { top: 60%; left: 8%; width: 60px; transform: rotate(25deg); }
.shape-squiggle { top: 40%; right: 5%; width: 100px; transform: rotate(-5deg); }
.shape-zigzag-2 { bottom: 15%; right: 15%; width: 80px; transform: rotate(-20deg); }
.shape-circle-2 { bottom: 30%; left: 15%; width: 50px; transform: rotate(30deg); }
.shape-dots { top: 50%; left: 50%; width: 80px; transform: translate(-50%, -50%); }

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(255, 245, 230, 0.9);
    backdrop-filter: blur(6px);
}

.nav-item {
    font-family: 'Bungee', cursive;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.nav-item:hover {
    transform: scale(1.15);
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-letters {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-letter {
    font-family: 'Bungee', cursive;
    font-size: 64px;
    color: var(--color);
    display: inline-block;
    transform: rotate(var(--rot));
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-letter.landed {
    opacity: 1;
}

.hero-letter.spacer {
    width: 24px;
}

.hero-subtitle {
    margin-top: 32px;
    text-align: center;
    position: relative;
}

.subtitle-doodle {
    display: block;
    width: 320px;
    height: 30px;
    margin: 0 auto 8px;
}

.doodle-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 0.8s ease;
}

.doodle-path.drawn {
    stroke-dashoffset: 0;
}

.subtitle-text {
    font-family: 'Bungee Shade', cursive;
    font-size: 20px;
    color: var(--coral);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.subtitle-text.visible {
    opacity: 1;
}

/* Projects */
#projects {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
}

/* Broken grid offsets */
#projects .project-card:nth-child(1) { grid-column: 1 / 2; margin-left: 20px; }
#projects .project-card:nth-child(2) { grid-column: 2 / 3; margin-top: 60px; margin-right: 10px; }
#projects .project-card:nth-child(3) { grid-column: 1 / 2; margin-left: -10px; }
#projects .project-card:nth-child(4) { grid-column: 2 / 3; margin-top: -20px; margin-right: 30px; }
#projects .project-card:nth-child(5) { grid-column: 1 / 2; margin-left: 40px; margin-top: -10px; }
#projects .project-card:nth-child(6) { grid-column: 2 / 3; margin-top: 30px; }

.project-card {
    background-color: var(--bg);
    padding: 32px;
    transform: rotate(var(--rot));
    box-shadow: 6px 6px 0 var(--shadow);
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card.visible {
    opacity: 1;
}

.project-card:hover {
    transform: rotate(calc(var(--rot) - 1deg)) translateY(-6px);
    box-shadow: 8px 8px 0 var(--shadow);
}

.card-sticker {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--sticker-bg);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    padding: 4px 12px;
    border-radius: 4px;
    transform: rotate(var(--sticker-rot));
    box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.2);
}

.card-title {
    font-family: 'Bungee', cursive;
    font-size: 32px;
    color: var(--text);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sticker-badge {
    display: inline-block;
    background: var(--sticker-bg);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    padding: 3px 10px;
    border-radius: 3px;
    transform: rotate(var(--sticker-rot));
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticker-badge.popped {
    opacity: 1;
}

/* Footer */
#footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px 60px;
}

.footer-text {
    font-family: 'Bungee', cursive;
    font-size: 14px;
    color: var(--text);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    #projects {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    #projects .project-card {
        margin: 0 !important;
    }

    .hero-letter {
        font-size: 40px;
    }

    .nav-item {
        font-size: 12px !important;
    }

    #main-nav {
        gap: 4px;
    }

    .subtitle-doodle {
        width: 240px;
    }

    .subtitle-text {
        font-size: 16px;
    }
}
