/* goomimi.com - Tech-Organic Blob Catalog */
/* Palette:
   Warm Clay: #D87A50
   Deep Tech: #1A2028
   Soft Linen: #F8F0E8
   Scan Overlay: #C8D0D8
   Nature Green: #5A8A60
   Coral Warm: #E8A088
   Abstract Gray: #888080
   Text Rich: #2A2220
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: #2A2220;
    background-color: #F8F0E8;
    overflow-x: hidden;
    position: relative;
}

/* Abstract-Tech Background Pattern */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 L30,50 L30,20 L70,20 L70,50 L100,50' fill='none' stroke='%23D87A50' stroke-width='0.5' opacity='0.02'/%3E%3Cpath d='M50,0 Q70,25 50,50 Q30,75 50,100' fill='none' stroke='%23D87A50' stroke-width='0.5' opacity='0.02'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Scan-line texture */
.blob-scanlines, .card-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, transparent 0px, transparent 5px, rgba(200,208,216,0.08) 5px, rgba(200,208,216,0.08) 6px);
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 500ms ease;
}

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

.hero-blob {
    width: 65vw;
    max-width: 800px;
    height: 55vh;
    max-height: 500px;
    border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
    border: 2px solid rgba(216, 122, 80, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(248, 240, 232, 0.6);
    clip-path: circle(0%);
    transition: clip-path 1s ease-out;
}

.hero-blob.visible {
    clip-path: circle(75%);
}

.hero-content {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.04em;
    color: #D87A50;
    margin-bottom: 16px;
    min-height: 1.5em;
}

.hero-title .cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    background-color: #D87A50;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #2A2220;
    max-width: 450px;
    margin: 0 auto 12px;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero-kr {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.2rem;
    color: #888080;
    display: block;
    opacity: 0;
    transition: opacity 500ms ease;
}

/* Card Grid Section */
.card-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blob-card {
    position: relative;
    padding: 36px;
    min-height: 280px;
    background-color: rgba(248, 240, 232, 0.8);
    border: 2px solid rgba(216, 122, 80, 0.4);
    overflow: hidden;
    opacity: 0;
    transition: opacity 500ms ease, transform 500ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

/* Unique blob shapes for each card */
.blob-card:nth-child(1) { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
.blob-card:nth-child(2) { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
.blob-card:nth-child(3) { border-radius: 50% 50% 60% 40% / 40% 55% 45% 60%; }
.blob-card:nth-child(4) { border-radius: 55% 45% 45% 55% / 60% 40% 55% 45%; }
.blob-card:nth-child(5) { border-radius: 40% 60% 50% 50% / 45% 50% 50% 55%; }
.blob-card:nth-child(6) { border-radius: 50% 50% 45% 55% / 55% 45% 60% 40%; }

/* Slide directions */
.slide-left { transform: translateX(-60px); }
.slide-up { transform: translateY(60px); }
.slide-right { transform: translateX(60px); }

.blob-card.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.blob-card:hover {
    border-color: rgba(216, 122, 80, 0.7);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.blob-card:hover .card-scanlines {
    opacity: 0.15;
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    background-color: #1A2028;
    color: #D87A50;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 12px;
    z-index: 3;
    opacity: 0;
    transition: opacity 300ms ease;
}

.blob-card.visible .card-badge {
    opacity: 1;
}

.card-inner {
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.04em;
    color: #D87A50;
    margin-bottom: 12px;
}

.card-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #2A2220;
}

/* Nature Element Abstractions */
.nature-element {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    opacity: 0.25;
    z-index: 1;
}

.leaf-form {
    border-radius: 80% 20% 80% 20%;
    background-color: #5A8A60;
    transform: rotate(30deg);
}

.leaf-form.variant-2 {
    background-color: #D87A50;
    transform: rotate(-15deg);
}

.petal-form {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid #5A8A60;
    background: transparent;
}

.petal-form.variant-2 {
    border-color: #E8A088;
    width: 40px;
    height: 60px;
    border-radius: 50% 50% 50% 50%;
}

.stem-form {
    width: 3px;
    height: 60px;
    background-color: #5A8A60;
    border-radius: 2px;
}

.stem-form.variant-2 {
    background-color: #D87A50;
    transform: rotate(20deg);
}

/* Tech Ribbon */
.tech-ribbon {
    background-color: #1A2028;
    padding: 16px 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.tech-ribbon.visible {
    opacity: 1;
    transform: translateY(0);
}

.ribbon-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: ribbonScroll 30s linear infinite;
}

.tech-ribbon:hover .ribbon-track {
    animation-play-state: paused;
}

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

.ribbon-item {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: #D87A50;
    flex-shrink: 0;
    transition: transform 200ms ease, text-shadow 200ms ease;
}

.ribbon-item:hover {
    transform: scale(1.15);
    text-shadow: 0 0 8px rgba(216, 122, 80, 0.3);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 60px 24px;
}

.footer-blob {
    width: 80%;
    max-width: 700px;
    padding: 48px;
    border-radius: 50% 50% 55% 45% / 40% 40% 60% 60%;
    border: 2px solid rgba(216, 122, 80, 0.3);
    background-color: rgba(248, 240, 232, 0.6);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-kr {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 2rem;
    color: #D87A50;
    display: block;
    margin-bottom: 12px;
}

.footer-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #2A2220;
    margin-bottom: 8px;
}

.footer-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #888080;
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-blob {
        width: 85vw;
        height: 50vh;
    }

    .slide-left, .slide-right {
        transform: translateY(40px);
    }
}
