/* ===================================
   lump.dev - Art Deco Neon Fusion
   =================================== */

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

:root {
    --deep-charcoal: #1A1A2E;
    --neon-teal: #00E5CC;
    --neon-coral: #FF6B6B;
    --neon-gold: #FFD700;
    --dark-panel: #1E1E32;
    --soft-silver: #C0C0D0;
    --deep-navy: #12122A;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-charcoal);
    color: var(--soft-silver);
    font-family: 'Questrial', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--deep-charcoal);
    overflow: hidden;
}

#sunburst-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 90vh);
    height: min(90vw, 90vh);
    pointer-events: none;
}

#sunburst {
    width: 100%;
    height: 100%;
}

.sunburst-line {
    stroke: var(--neon-gold);
    stroke-width: 0.5;
    opacity: 0.3;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: sunburstDraw 2s ease-out forwards;
}

/* Stagger the sunburst line draw animation */
.sunburst-line[data-index="0"] { animation-delay: 0s; }
.sunburst-line[data-index="1"] { animation-delay: 0.04s; }
.sunburst-line[data-index="2"] { animation-delay: 0.08s; }
.sunburst-line[data-index="3"] { animation-delay: 0.12s; }
.sunburst-line[data-index="4"] { animation-delay: 0.16s; }
.sunburst-line[data-index="5"] { animation-delay: 0.2s; }
.sunburst-line[data-index="6"] { animation-delay: 0.24s; }
.sunburst-line[data-index="7"] { animation-delay: 0.28s; }
.sunburst-line[data-index="8"] { animation-delay: 0.32s; }
.sunburst-line[data-index="9"] { animation-delay: 0.36s; }
.sunburst-line[data-index="10"] { animation-delay: 0.4s; }
.sunburst-line[data-index="11"] { animation-delay: 0.44s; }
.sunburst-line[data-index="12"] { animation-delay: 0.48s; }
.sunburst-line[data-index="13"] { animation-delay: 0.52s; }
.sunburst-line[data-index="14"] { animation-delay: 0.56s; }
.sunburst-line[data-index="15"] { animation-delay: 0.6s; }
.sunburst-line[data-index="16"] { animation-delay: 0.64s; }
.sunburst-line[data-index="17"] { animation-delay: 0.68s; }
.sunburst-line[data-index="18"] { animation-delay: 0.72s; }
.sunburst-line[data-index="19"] { animation-delay: 0.76s; }
.sunburst-line[data-index="20"] { animation-delay: 0.8s; }
.sunburst-line[data-index="21"] { animation-delay: 0.84s; }
.sunburst-line[data-index="22"] { animation-delay: 0.88s; }
.sunburst-line[data-index="23"] { animation-delay: 0.92s; }
.sunburst-line[data-index="24"] { animation-delay: 0.96s; }
.sunburst-line[data-index="25"] { animation-delay: 1.0s; }
.sunburst-line[data-index="26"] { animation-delay: 1.04s; }
.sunburst-line[data-index="27"] { animation-delay: 1.08s; }
.sunburst-line[data-index="28"] { animation-delay: 1.12s; }
.sunburst-line[data-index="29"] { animation-delay: 1.16s; }
.sunburst-line[data-index="30"] { animation-delay: 1.2s; }
.sunburst-line[data-index="31"] { animation-delay: 1.24s; }
.sunburst-line[data-index="32"] { animation-delay: 1.28s; }
.sunburst-line[data-index="33"] { animation-delay: 1.32s; }
.sunburst-line[data-index="34"] { animation-delay: 1.36s; }
.sunburst-line[data-index="35"] { animation-delay: 1.4s; }

@keyframes sunburstDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Sunburst pulse animation - applied via JS after initial draw */
.sunburst-line.pulsing {
    animation: sunburstPulse 8s linear infinite;
}

@keyframes sunburstPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Logotype */
#logotype {
    position: relative;
    z-index: 2;
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(48px, 12vw, 140px);
    color: var(--neon-gold);
    text-transform: lowercase;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: logoFadeIn 1.5s ease-out 1s forwards;
    text-shadow:
        0 0 4px rgba(255, 215, 0, 0.6),
        0 0 12px rgba(255, 215, 0, 0.3),
        0 0 24px rgba(255, 215, 0, 0.1);
}

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

#tagline {
    position: relative;
    z-index: 2;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-teal);
    margin-top: 16px;
    opacity: 0;
    animation: taglineFadeIn 1.2s ease-out 1.8s forwards;
    text-shadow:
        0 0 4px rgba(0, 229, 204, 0.4),
        0 0 12px rgba(0, 229, 204, 0.15);
}

@keyframes taglineFadeIn {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

/* --- Decorative Strips --- */
.deco-strip {
    width: 100%;
    height: 40px;
    background-color: var(--deep-navy);
    position: relative;
    overflow: hidden;
}

.deco-zigzag {
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.08) 10px,
            rgba(255, 215, 0, 0.08) 11px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.08) 10px,
            rgba(255, 215, 0, 0.08) 11px
        );
}

.deco-stepped {
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(255, 215, 0, 0.06) 30px,
            rgba(255, 215, 0, 0.06) 31px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(255, 215, 0, 0.04) 8px,
            rgba(255, 215, 0, 0.04) 9px
        );
}

/* --- Card Grid Section --- */
#card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Grid decorative crossings */
#card-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent calc(50% - 10px),
            rgba(255, 215, 0, 0.05) calc(50% - 10px),
            rgba(255, 215, 0, 0.05) calc(50%),
            transparent calc(50%),
            transparent 100%
        );
}

/* --- Cards --- */
.card {
    position: relative;
    background: var(--dark-panel);
    border: 1px solid transparent;
    background-image:
        linear-gradient(var(--dark-panel), var(--dark-panel)),
        linear-gradient(135deg, var(--neon-gold), var(--neon-teal));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 20px rgba(0, 229, 204, 0.1),
        0 0 40px rgba(255, 215, 0, 0.05);
}

/* Card Icon */
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* Neon glow on card icons */
.card[data-color="teal"] .card-icon svg {
    filter: drop-shadow(0 0 4px rgba(0, 229, 204, 0.5));
}

.card[data-color="coral"] .card-icon svg {
    filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.5));
}

.card[data-color="gold"] .card-icon svg {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

/* Card Title */
.card-title {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--soft-silver);
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.card[data-color="teal"] .card-title {
    text-shadow:
        0 0 4px rgba(0, 229, 204, 0.3),
        0 0 12px rgba(0, 229, 204, 0.1);
}

.card[data-color="coral"] .card-title {
    text-shadow:
        0 0 4px rgba(255, 107, 107, 0.3),
        0 0 12px rgba(255, 107, 107, 0.1);
}

.card[data-color="gold"] .card-title {
    text-shadow:
        0 0 4px rgba(255, 215, 0, 0.3),
        0 0 12px rgba(255, 215, 0, 0.1);
}

/* Card Body */
.card-body {
    font-family: 'Questrial', sans-serif;
    font-size: clamp(14px, 1vw, 17px);
    color: var(--soft-silver);
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.85;
}

/* Card Meta */
.card-meta {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--neon-gold);
    opacity: 0.5;
    margin-top: auto;
}

/* Ripple Effect */
.ripple-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--neon-teal);
    pointer-events: none;
    animation: rippleOut 0.8s ease-out forwards;
}

@keyframes rippleOut {
    from {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
        margin-left: -150px;
        margin-top: -150px;
    }
}

/* --- Footer --- */
#footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 48px 40px;
    background-color: var(--deep-navy);
}

.footer-ornament {
    width: 120px;
    height: 40px;
    opacity: 0.6;
}

.footer-ornament svg {
    width: 100%;
    height: 100%;
}

.footer-logo {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    font-size: clamp(24px, 4vw, 36px);
    color: var(--neon-gold);
    letter-spacing: 0.15em;
    text-shadow:
        0 0 4px rgba(255, 215, 0, 0.4),
        0 0 12px rgba(255, 215, 0, 0.2),
        0 0 24px rgba(255, 215, 0, 0.08);
}

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

@media (max-width: 560px) {
    #card-grid {
        grid-template-columns: 1fr;
        padding: 32px 16px;
    }

    #footer {
        flex-direction: column;
        gap: 16px;
        padding: 32px 16px;
    }

    .footer-ornament {
        display: none;
    }

    .deco-strip {
        height: 24px;
    }
}

/* --- Selection --- */
::selection {
    background: rgba(0, 229, 204, 0.3);
    color: var(--soft-silver);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}