/* miris.xyz - Ethereal Bento Layout */
/* Colors: #FFDAB9 #FFE8D6 #FF8C7C #4A4558 #FFF8F2 #FFD166 #7B6F8E #A8C5A0 #2D2A3E */
/* Fonts: Quicksand (display), Nunito (body), Inconsolata (mono) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #FFF8F2;
    color: #2D2A3E;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.mono {
    font-family: 'Inconsolata', monospace;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Particles canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Bento container */
.bento-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Base bento cell */
.bento-cell {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 28px;
    opacity: 0;
    transform: scale(0.92) translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 218, 185, 0.3);
    overflow: hidden;
}

.bento-cell.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.bento-cell:hover {
    transform: scale(1.015) translateY(-2px);
    box-shadow: 0 8px 32px rgba(74, 69, 88, 0.08);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
}

.bento-cell.visible:hover {
    transform: scale(1.015) translateY(-2px);
}

/* Cell labels */
.cell-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 36px);
    color: #2D2A3E;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.cell-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 17px);
    color: #4A4558;
    line-height: 1.7;
}

/* Hero cell */
.cell-hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #FFE8D6 0%, #FFF8F2 50%, #FFDAB9 100%);
    text-align: center;
    padding: 60px 28px;
    position: relative;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 16px;
    animation: float 4s ease-in-out infinite;
}

.logo-icon {
    filter: drop-shadow(0 4px 12px rgba(255, 140, 124, 0.2));
}

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 72px);
    color: #2D2A3E;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 24px);
    color: #7B6F8E;
    letter-spacing: 0.04em;
}

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

.sparkle {
    position: absolute;
    color: #FFD166;
    font-size: 18px;
    animation: twinkle 3s ease-in-out infinite;
}

.sparkle-1 { top: 20%; left: 15%; animation-delay: 0s; }
.sparkle-2 { top: 30%; right: 20%; animation-delay: 1s; }
.sparkle-3 { bottom: 25%; left: 25%; animation-delay: 2s; }

/* About cell */
.cell-about {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.75);
}

/* Mascot cell */
.cell-mascot {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFF8F2, #FFE8D6);
    padding: 20px;
}

.mascot-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(74, 69, 88, 0.08));
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Philosophy cell */
.cell-philosophy {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.7);
}

.philosophy-icon {
    margin-bottom: 12px;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Swatch cell */
.cell-swatch {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFF8F2;
}

.swatch-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.swatch {
    aspect-ratio: 1;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(74, 69, 88, 0.15);
}

.swatch-caption {
    font-size: 13px;
    color: #7B6F8E;
    text-transform: lowercase;
    letter-spacing: 0.08em;
}

/* Projects header */
.cell-projects-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 28px;
    background: transparent;
    backdrop-filter: none;
    border: none;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 48px);
    color: #2D2A3E;
    letter-spacing: 0.02em;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF8C7C, #FFD166);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Project cells */
.cell-project {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.75);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.3s ease;
}

.cell-project:hover {
    background: rgba(255, 232, 214, 0.5);
}

.project-icon {
    margin-bottom: 16px;
}

.project-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 28px);
    color: #2D2A3E;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.project-desc {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.4vw, 16px);
    color: #4A4558;
    line-height: 1.65;
    margin-bottom: 16px;
}

.project-tag {
    display: inline-block;
    font-family: 'Inconsolata', monospace;
    font-size: 12px;
    color: #7B6F8E;
    background: rgba(123, 111, 142, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

/* Quote cell */
.cell-quote {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A4558, #2D2A3E);
    color: #FFF8F2;
    text-align: center;
}

.motto {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.6;
    color: #FFE8D6;
    letter-spacing: 0.01em;
}

.quote-mark {
    color: #FFD166;
    font-size: 1.4em;
    vertical-align: -0.1em;
}

/* Stats cell */
.cell-stats {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(145deg, #FFE8D6, #FFDAB9);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    color: #2D2A3E;
    line-height: 1.1;
}

.stat-label {
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    color: #7B6F8E;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

/* Dev log cell */
.cell-devlog {
    grid-column: span 2;
    background: #2D2A3E;
    color: #FFF8F2;
}

.cell-devlog .cell-label {
    color: #FFE8D6;
}

.code-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
}

.code-block code {
    font-size: clamp(12px, 1.3vw, 15px);
    line-height: 1.7;
    white-space: pre;
    display: block;
}

.code-comment { color: #7B6F8E; }
.code-keyword { color: #FF8C7C; }
.code-string { color: #A8C5A0; }

/* Vibe cell */
.cell-vibe {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(168, 197, 160, 0.15), rgba(255, 209, 102, 0.15));
    gap: 16px;
}

.vibe-visual {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.wave-bar {
    width: 8px;
    height: var(--h, 50%);
    background: linear-gradient(to top, #A8C5A0, #FFD166);
    border-radius: 4px;
    animation: wave-pulse 2s ease-in-out infinite;
    transform-origin: bottom;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }
.wave-bar:nth-child(6) { animation-delay: 0.75s; }
.wave-bar:nth-child(7) { animation-delay: 0.9s; }
.wave-bar:nth-child(8) { animation-delay: 1.05s; }
.wave-bar:nth-child(9) { animation-delay: 1.2s; }
.wave-bar:nth-child(10) { animation-delay: 1.35s; }

.vibe-label {
    font-size: 13px;
    color: #7B6F8E;
    letter-spacing: 0.05em;
}

/* Tools cell */
.cell-tools {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.7);
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-pill {
    display: inline-block;
    font-family: 'Inconsolata', monospace;
    font-size: 13px;
    color: #4A4558;
    background: rgba(168, 197, 160, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.tool-pill:hover {
    background: rgba(168, 197, 160, 0.4);
    transform: translateY(-2px);
}

/* Small icon cells */
.cell-icon-heart,
.cell-icon-star {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.5);
}

.cell-icon-heart svg,
.cell-icon-star svg {
    animation: float 3s ease-in-out infinite;
}

.cell-icon-star svg {
    animation-delay: 1.5s;
}

/* Members cell */
.cell-members {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.7);
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.member:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
}

.member-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #2D2A3E;
}

.member-role {
    font-size: 11px;
    color: #7B6F8E;
    letter-spacing: 0.03em;
}

/* Contact cell */
.cell-contact {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 140, 124, 0.1), rgba(255, 209, 102, 0.1));
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inconsolata', monospace;
    font-size: 15px;
    color: #4A4558;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
    color: #FF8C7C;
    transform: translateX(4px);
}

/* Footer cell */
.cell-footer {
    grid-column: 1 / -1;
    text-align: center;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 32px 28px;
}

.footer-text {
    font-size: 13px;
    color: #7B6F8E;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-flowers {
    display: flex;
    justify-content: center;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes wave-pulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.6); }
}

/* Responsive */
@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 12px;
        gap: 12px;
    }

    .cell-hero {
        padding: 40px 20px;
    }

    .cell-about,
    .cell-mascot,
    .cell-philosophy,
    .cell-swatch,
    .cell-project,
    .cell-quote,
    .cell-stats,
    .cell-devlog,
    .cell-vibe,
    .cell-tools,
    .cell-members,
    .cell-contact {
        grid-column: span 2;
    }

    .cell-icon-heart,
    .cell-icon-star {
        grid-column: span 1;
    }

    .bento-cell {
        padding: 20px;
    }

    .members-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bento-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cell-about,
    .cell-mascot,
    .cell-philosophy,
    .cell-swatch,
    .cell-project,
    .cell-quote,
    .cell-stats,
    .cell-devlog,
    .cell-vibe,
    .cell-tools,
    .cell-members,
    .cell-contact,
    .cell-icon-heart,
    .cell-icon-star {
        grid-column: span 1;
    }

    .cell-icon-heart,
    .cell-icon-star {
        aspect-ratio: auto;
        padding: 20px;
    }

    .swatch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
