/* mybadge.id - Holographic Badge Collection */
/* Colors: #E0C060, #101418, #B0B8C0, #F080B0, #060810, #60D0E0, #80E0C0, #FFFFFF */
/* Fonts: Outfit, Space Mono */

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

body {
    font-family: 'Outfit', sans-serif;
    color: #B0B8C0;
    background: #060810;
    overflow-x: hidden;
    min-height: 100vh;
}

.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

.hero__badge-showcase {
    margin-bottom: 40px;
}

.hero-badge {
    width: 200px;
    height: 267px;
    position: relative;
    border-radius: 12px;
    opacity: 0;
    animation: badgeMaterialize 1.4s ease forwards;
}

.badge-glow {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: linear-gradient(135deg, #60D0E0, #F080B0, #E0C060, #80E0C0);
    background-size: 400% 400%;
    animation: rainbowShimmer 4s ease infinite;
    opacity: 0;
    animation: glowAppear 0.8s ease forwards, rainbowShimmer 4s ease infinite;
}

.badge-surface {
    position: absolute;
    inset: 2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #101418, #1a1e28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    animation: surfaceReveal 0.6s ease 0.8s forwards;
}

.hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    opacity: 0;
    animation: fadeUp 1s ease 1.8s forwards;
}

.hero__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #B0B8C0;
    margin-top: 12px;
    opacity: 0;
    animation: fadeUp 1s ease 2.2s forwards;
}

/* Badge Icons */
.badge-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon--hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #60D0E0;
}

.badge-icon--shield {
    clip-path: polygon(50% 0%, 100% 15%, 100% 65%, 50% 100%, 0% 65%, 0% 15%);
    background: #F080B0;
}

.badge-icon--circle {
    border-radius: 50%;
    background: #E0C060;
}

.badge-icon--cyan { background: #60D0E0; }
.badge-icon--pink { background: #F080B0; }
.badge-icon--gold { background: #E0C060; }
.badge-icon--green { background: #80E0C0; }

.badge-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #FFFFFF;
}

.badge-hash {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #60D0E0;
    opacity: 0.6;
}

/* Section Title */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
}

/* Badge Grid */
.collection {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.badge-card {
    aspect-ratio: 3/4;
    border-radius: 12px;
    position: relative;
    perspective: 600px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.badge-card__holographic {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(96, 208, 224, 0.15),
        rgba(240, 128, 176, 0.15),
        rgba(224, 192, 96, 0.15),
        rgba(128, 224, 192, 0.15),
        rgba(96, 208, 224, 0.15)
    );
    background-size: 400% 400%;
    animation: rainbowShimmer 8s ease infinite;
    border: 1px solid rgba(96, 208, 224, 0.2);
}

.badge-card__content {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(16, 20, 24, 0.9), rgba(6, 8, 16, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    margin: 1px;
}

.badge-card__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFFFFF;
}

.badge-card__level {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #B0B8C0;
}

.badge-card__hash {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #60D0E0;
    opacity: 0.5;
}

/* About */
.about {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about__text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #B0B8C0;
    margin-bottom: 16px;
}

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

.footer__text {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #B0B8C0;
    opacity: 0.4;
}

/* Animations */
@keyframes rainbowShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes badgeMaterialize {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glowAppear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes surfaceReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal */
.grid-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.grid-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}
