/* karmabadge.com - Y2K Chrome Badge Collection */

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

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: #F0E8F8;
    background: #1A1420;
    overflow-x: hidden;
}

/* Karma Meter */
#karma-meter {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60vh;
    background: rgba(192, 192, 208, 0.1);
    border-radius: 2px;
    z-index: 100;
    overflow: hidden;
}

.meter-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #7B68EE, #FFD700);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.meter-dot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    animation: karma-flow 10s linear infinite;
}

@keyframes karma-flow {
    0% { bottom: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { bottom: 100%; opacity: 0; }
}

/* Chrome Badge */
.chrome-badge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #808090, #E0E0F0, #808090, #C0C0D0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chrome-badge.small {
    width: 120px;
    height: 120px;
}

.badge-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2A2430;
}

.holo-gradient {
    background: linear-gradient(135deg, #2A2430 0%, #1A1420 50%, #2A2430 100%);
    background-size: 200% 200%;
    animation: holo-shift 4s ease infinite;
}

@keyframes holo-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================================
   HERO: Trophy Case
   ============================================= */

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1A1420;
    gap: 2rem;
}

#hero-badge {
    width: 200px;
    height: 200px;
    transform: scale(0);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    animation: badge-rotate 30s linear infinite;
}

#hero-badge.visible {
    transform: scale(1);
    opacity: 1;
}

@keyframes badge-rotate {
    from { transform: scale(1) rotateY(0deg); }
    to { transform: scale(1) rotateY(360deg); }
}

#hero-title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #C0C0D0, #FFD700, #C0C0D0);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metal-shimmer 3s ease infinite;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#hero-title.visible {
    opacity: 1;
}

@keyframes metal-shimmer {
    0% { background-position: -100% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-sub {
    font-weight: 400;
    font-size: 14px;
    color: #8A80A0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-sub.visible {
    opacity: 1;
}

/* =============================================
   Achievement Strip
   ============================================= */

.achievement-strip {
    width: 100%;
    height: 80px;
    background: #2A2430;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.strip-track {
    display: flex;
    gap: 2rem;
    animation: strip-scroll 30s linear infinite;
    white-space: nowrap;
}

.strip-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #C0C0D0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.strip-badge span {
    font-weight: 600;
    font-size: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8A80A0;
}

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

/* =============================================
   Badge Grid
   ============================================= */

#badge-grid {
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.04em;
    color: #F0E8F8;
    margin-bottom: 2rem;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.badge-card {
    background: #2A2430;
    border-radius: 16px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 800px;
    opacity: 0;
    transform: scale(0.8) rotateY(15deg);
}

.badge-card.loaded {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.badge-card:hover {
    transform: perspective(800px) rotateX(5deg) rotateY(-5deg) translateY(-4px);
    box-shadow: 0 12px 30px rgba(123, 104, 238, 0.2);
}

.badge-label {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C0C0D0;
    transition: color 0.3s;
}

.badge-card:hover .badge-label {
    color: #FFD700;
}

.badge-karma {
    font-weight: 400;
    font-size: 12px;
    color: #8A80A0;
}

/* =============================================
   About Karma
   ============================================= */

#about-karma {
    padding: 6rem 3rem;
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 640px;
    text-align: center;
}

.about-content h2 {
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #FFD700;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: #F0E8F8;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Footer
   ============================================= */

#site-footer {
    padding: 4rem 2rem;
    text-align: center;
    background: #1A1420;
}

.footer-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #FFD700;
    margin-bottom: 0.25rem;
}

.footer-sub {
    font-weight: 400;
    font-size: 12px;
    color: #8A80A0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
