/* miris-project.net - The Capsule Collection */

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #E8D5F5 0%, #FFF8E7 50%, #FFF8E7 100%);
    color: #3D3D3D;
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === Floating Shapes === */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-shape {
    position: absolute;
}

.shape-1 { top: 12%; left: 8%; animation: floatY 5s ease-in-out infinite, floatRot 7s ease-in-out infinite; }
.shape-2 { top: 22%; right: 12%; animation: floatY 4s ease-in-out infinite 0.5s, floatRot 6s ease-in-out infinite; }
.shape-3 { top: 45%; left: 5%; animation: floatY 6s ease-in-out infinite 1s, floatRot 8s ease-in-out infinite; }
.shape-4 { top: 35%; right: 8%; animation: floatY 3.5s ease-in-out infinite 0.3s, floatRot 5s ease-in-out infinite; }
.shape-5 { top: 65%; left: 15%; animation: floatY 5.5s ease-in-out infinite 0.8s, floatRot 7s ease-in-out infinite; }
.shape-6 { top: 70%; right: 10%; animation: floatY 4.5s ease-in-out infinite 1.2s, floatRot 6.5s ease-in-out infinite; }
.shape-7 { top: 85%; left: 10%; animation: floatY 7s ease-in-out infinite 0.6s, floatRot 9s ease-in-out infinite; }
.shape-8 { top: 55%; right: 18%; animation: floatY 4s ease-in-out infinite 1.5s, floatRot 5.5s ease-in-out infinite; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatRot {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* === The Marquee === */
.marquee {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.marquee-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(123, 45, 142, 0.05) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.marquee-content {
    text-align: center;
}

.wordmark {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 7rem);
    color: #7B2D8E;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 30%, #7B2D8E 30%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 24px rgba(123,45,142,0.15)) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    opacity: 0;
    transform: translateY(-40px);
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceIn {
    to { opacity: 1; transform: translateY(0); }
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: #4A1259;
    letter-spacing: 0.25em;
    margin-top: 8px;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceChevron 1.5s ease-in-out infinite;
}

@keyframes bounceChevron {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === Shelves === */
.shelf {
    position: relative;
    z-index: 1;
    padding: 60px 24px 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.shelf-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #4A1259;
    margin-bottom: 16px;
}

.shelf-line {
    position: relative;
    border-bottom: 2px solid #D4BEE4;
    margin-bottom: 32px;
}

.shelf-line::after {
    content: '';
    display: block;
    height: 8px;
    background: linear-gradient(to bottom, rgba(212, 190, 228, 0.3), transparent);
}

/* === Project Cards Grid === */
.shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* === Project Card === */
.project-card {
    border-radius: 20px;
    background: #FFFFFF;
    background-image: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.4), transparent 60%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        inset -2px -2px 6px rgba(0, 0, 0, 0.06),
        inset 3px 3px 8px rgba(255, 255, 255, 0.7),
        0 8px 24px rgba(123, 45, 142, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transform: perspective(800px) rotateX(2deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    will-change: transform, opacity;
}

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

.project-card:hover {
    transform: perspective(800px) rotateX(0deg) translateY(-4px) scale(1.04);
    box-shadow:
        inset -2px -2px 6px rgba(0, 0, 0, 0.06),
        inset 3px 3px 8px rgba(255, 255, 255, 0.7),
        0 16px 40px rgba(123, 45, 142, 0.18),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card:hover .card-thumbnail {
    background-position: 40% 30%;
}

.project-card:hover .status-badge {
    animation: badgePulse 0.8s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.card-thumbnail {
    width: 100%;
    height: 180px;
    border-radius: 20px 20px 0 0;
    transition: background-position 0.3s ease;
}

.card-info {
    padding: 16px 20px 20px;
}

.card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #4A1259;
    margin-bottom: 6px;
}

.card-desc {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #3D3D3D;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* === Status Badges === */
.status-badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    padding: 2px 10px;
    border-radius: 999px;
}

.status-badge.released {
    background-color: #4ADE80;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.status-badge.indev {
    background-color: #FBBF24;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.status-badge.prototype {
    background-color: #F472B6;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* === The Workbench === */
.workbench {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 24px 100px;
    overflow: hidden;
}

.workbench-tools {
    position: relative;
    width: 300px;
    height: 80px;
    margin: 0 auto 24px;
}

.tool-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.tool-icon:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.tool-1 { top: 10px; left: 20px; transform: rotate(-5deg); }
.tool-2 { top: 5px; left: 120px; transform: rotate(8deg); }
.tool-3 { top: 15px; left: 200px; transform: rotate(-3deg); }
.tool-4 { top: 40px; left: 80px; transform: rotate(6deg); }

.workbench-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #7B2D8E;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.98); }
    50% { transform: scale(1.02); }
}

.steam-wisps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.wisp {
    animation: steamRise 3s ease-in-out infinite;
}

.wisp-1 { animation-delay: 0s; }
.wisp-2 { animation-delay: 1.5s; }

@keyframes steamRise {
    0% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 0.1; transform: translateY(-12px); }
    100% { opacity: 0; transform: translateY(-24px); }
}

/* === Card Flip Entrance === */
.card-flip-enter {
    animation: cardFlip 0.5s ease-out forwards;
}

@keyframes cardFlip {
    from {
        transform: perspective(800px) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(800px) rotateY(0deg) rotateX(2deg);
        opacity: 1;
    }
}

/* === Design Palette References === */
.float-shape circle[fill="#FECDD3"],
.float-shape polygon[fill="#FECDD3"] {
    fill: #FECDD3;
}

.float-shape rect[fill="#FEF3C7"],
.float-shape polygon[fill="#FEF3C7"] {
    fill: #FEF3C7;
}

/* === Responsive === */
@media (max-width: 700px) {
    .shelf-grid {
        grid-template-columns: 1fr;
    }

    .shelf {
        padding: 40px 16px 24px;
    }

    .workbench-tools {
        width: 240px;
    }

    .floating-shapes {
        display: none;
    }
}
