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

:root {
    --gold: #d4952e;
    --badge-gold: #e8b84b;
    --cream: #ede9df;
    --deep-void: #0f0e1a;
    --night: #1a1926;
    --wisteria: #7b6cc4;
    --pale-gold: #f0cf8a;
    --deep-purple: #3d2c8c;
    --muted-lavender: #9b93b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Figtree', sans-serif;
    background: var(--deep-void);
    color: var(--cream);
    overflow-x: hidden;
}

/* === Section: The Void (Hero) === */
.section-void {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--deep-void);
}

.blob-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob-shape {
    width: clamp(300px, 50vw, 600px);
    height: auto;
    animation: blobPulse 4s ease-in-out infinite;
    opacity: 0;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes blobPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}

.hero-title {
    position: absolute;
    font-family: 'Anybody', sans-serif;
    font-variation-settings: 'wdth' 130, 'wght' 800;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--cream);
    transition: font-variation-settings 1.5s ease;
}

.hero-title.compressed {
    font-variation-settings: 'wdth' 75, 'wght' 800;
}

.hero-subtitle {
    margin-top: 2rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--muted-lavender);
    opacity: 0;
    animation: fadeIn 2s ease 1.5s forwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s ease infinite;
    opacity: 0.6;
}

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

/* === Section: Credentials === */
.section-credentials {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--night);
}

.floating-panels {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.panel {
    background: rgba(61, 44, 140, 0.15);
    border: 1px solid rgba(123, 108, 196, 0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    padding: 3rem 2.5rem;
    width: 280px;
    text-align: center;
    transition: transform 0.6s ease, border-radius 0.8s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel:hover {
    border-radius: 50% 50% 50% 50%;
    box-shadow: 0 0 40px rgba(123, 108, 196, 0.2);
    transform: translateY(-5px);
}

.panel-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.panel h3 {
    font-family: 'Anybody', sans-serif;
    font-variation-settings: 'wdth' 110, 'wght' 600;
    font-size: 1.4rem;
    color: var(--badge-gold);
    margin-bottom: 0.75rem;
}

.panel p {
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--muted-lavender);
    line-height: 1.5;
}

/* === Section: The Forge === */
.section-forge {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--deep-void);
}

.section-title {
    font-family: 'Anybody', sans-serif;
    font-variation-settings: 'wdth' 120, 'wght' 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--cream);
    margin-bottom: 4rem;
    text-align: center;
}

.forge-grid {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.forge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.blob-badge svg {
    width: 120px;
    height: 120px;
    transition: transform 0.4s ease;
}

.blob-badge:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.forge-label {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-lavender);
}

/* === Section: Display Case === */
.section-display {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--night);
}

.badge-showcase {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
}

.showcase-item {
    transition: transform 0.5s ease;
}

.badge-card {
    position: relative;
    background: rgba(15, 14, 26, 0.8);
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 220px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.badge-card:hover {
    border-color: rgba(232, 184, 75, 0.5);
    transform: translateY(-8px);
}

.badge-card:hover .badge-glow {
    opacity: 1;
}

.badge-glow {
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(232, 184, 75, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.badge-card svg {
    width: 80px;
    height: 80px;
}

.badge-card span {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--pale-gold);
}

/* === Footer === */
.section-footer {
    position: relative;
    padding: 4rem 2rem 2rem;
    background: var(--deep-void);
    text-align: center;
}

.footer-blob {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.footer-blob svg {
    width: 100%;
    height: auto;
    display: block;
}

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

.footer-logo {
    font-family: 'Anybody', sans-serif;
    font-variation-settings: 'wdth' 100, 'wght' 700;
    font-size: 1.5rem;
    color: var(--badge-gold);
}

.footer-content p {
    margin-top: 0.75rem;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--muted-lavender);
}

/* === Morph blob animation === */
.morph-blob {
    animation: morphBlob 6s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% { d: path("M60,20 C85,20 100,40 100,60 C100,80 85,100 60,100 C35,100 20,80 20,60 C20,40 35,20 60,20 Z"); }
    50% { d: path("M60,25 C90,15 105,45 95,65 C85,85 70,100 50,95 C30,90 15,70 20,50 C25,30 40,35 60,25 Z"); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .floating-panels {
        flex-direction: column;
        align-items: center;
    }
    .forge-grid {
        gap: 2rem;
    }
    .badge-showcase {
        flex-direction: column;
        align-items: center;
    }
}
