/* ===========================
   lump.dev - Inflated 3D Design
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0e1a;
    color: #c0cfe0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Aurora Background --- */
.aurora-bg {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 40vh;
    background: radial-gradient(ellipse at center bottom,
        rgba(126, 203, 245, 0.04) 0%,
        rgba(167, 139, 250, 0.03) 30%,
        rgba(52, 211, 153, 0.02) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

/* --- Navigation --- */
.toggle-nav {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.nav-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #3d6b9e;
    background: #121829;
    color: #7ecbf5;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
                background 300ms ease;
    box-shadow:
        inset 2px 2px 6px rgba(126, 203, 245, 0.08),
        inset -2px -2px 6px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

.nav-bubble:hover {
    transform: scale(1.15);
    box-shadow:
        inset 2px 2px 8px rgba(126, 203, 245, 0.12),
        inset -2px -2px 8px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.5);
    background: #1e2a42;
}

.nav-panel {
    position: absolute;
    top: 60px;
    right: 0;
    background: #121829;
    border: 1px solid #3d6b9e;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 140px;
    box-shadow:
        inset 2px 2px 8px rgba(126, 203, 245, 0.06),
        inset -2px -2px 8px rgba(0, 0, 0, 0.3),
        0 12px 40px rgba(0, 0, 0, 0.6);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 200ms ease;
}

.nav-panel.is-open {
    transform: translateX(0);
    opacity: 1;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3d6b9e;
    text-decoration: none;
    transition: color 300ms ease;
}

.nav-link:hover {
    color: #7ecbf5;
}

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

.lump-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(72px, 15vw, 120px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.0;
    background: linear-gradient(135deg, #c0cfe0 0%, #3d6b9e 40%, #7ecbf5 60%, #c0cfe0 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #c0cfe0;
    animation: sheen-drift 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 30px rgba(126, 203, 245, 0.15));
    margin-bottom: 24px;
}

@keyframes sheen-drift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #8899b0;
    text-transform: lowercase;
}

/* --- Aurora Divider --- */
.aurora-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #7ecbf5 20%,
        #a78bfa 50%,
        #34d399 80%,
        transparent 100%);
    animation: aurora-pulse 4s ease-in-out infinite;
    will-change: opacity;
    margin: 0;
}

@keyframes aurora-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    position: relative;
    z-index: 1;
}

/* --- Card Base --- */
.card {
    background: #121829;
    background-image: linear-gradient(135deg, rgba(126, 203, 245, 0.06) 0%, transparent 50%);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 4px 4px 12px rgba(126, 203, 245, 0.08),
        inset -4px -4px 12px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(61, 107, 158, 0.15);
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

.card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    box-shadow:
        inset 4px 4px 16px rgba(126, 203, 245, 0.12),
        inset -4px -4px 16px rgba(0, 0, 0, 0.5),
        0 16px 48px rgba(0, 0, 0, 0.6);
}

/* --- Card Variants --- */
.card--wide {
    grid-column: span 2;
}

.card--tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

/* --- Card Content --- */
.card-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3d6b9e;
    display: block;
    margin-bottom: 16px;
    transition: color 300ms ease;
}

.card:hover .card-label {
    color: #7ecbf5;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #c0cfe0;
    margin-bottom: 16px;
}

.card-body {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.65;
    color: #8899b0;
}

.card-code {
    margin-top: 20px;
    padding: 16px;
    background: rgba(10, 14, 26, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(61, 107, 158, 0.2);
    overflow-x: auto;
}

.card-code code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #7ecbf5;
    line-height: 1.6;
}

/* --- Noise Canvas --- */
.noise-canvas {
    display: block;
    width: 100%;
    height: 80px;
    margin-top: 20px;
    border-radius: 12px;
    image-rendering: pixelated;
    opacity: 0.5;
}

/* --- Cursor Particles --- */
.cursor-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: particle-fade 800ms ease-out forwards;
}

@keyframes particle-fade {
    0% {
        opacity: 0.6;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* --- Void Zone / Footer --- */
.void-zone {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.end-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #3d6b9e;
    opacity: 0.6;
}

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

    .card--wide {
        grid-column: span 2;
    }

    .lump-title {
        font-size: clamp(56px, 12vw, 96px);
    }
}

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

    .card--wide,
    .card--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .card {
        padding: 24px;
    }

    .lump-title {
        font-size: clamp(48px, 15vw, 72px);
    }

    .toggle-nav {
        top: 16px;
        right: 16px;
    }
}
