/* ========================================
   mechanic.party — Sci-Fi Workshop Celebration
   ======================================== */

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

:root {
    --space-dark: #0A0E18;
    --frost-white: #E0E8F0;
    --steel-blue: #B0B8C8;
    --pastel-lilac: #B0A0D0;
    --pastel-coral: #D0A0A0;
    --geometric-teal: #60B0B0;
    --marble-vein: #D0C8D8;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--space-dark);
    color: var(--steel-blue);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
}

/* --- Ripple Container --- */
#ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--pastel-lilac);
    opacity: 0.6;
    animation: rippleExpand 1s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* --- Floating Geometric Shapes --- */
.geo-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.06;
    animation: geoFloat 20s ease-in-out infinite;
}

.geo-hexagon {
    width: 180px;
    height: 180px;
    top: 8%;
    left: 5%;
    animation-duration: 25s;
}

.geo-triangle {
    width: 140px;
    height: 140px;
    top: 20%;
    right: 8%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.geo-circle {
    width: 200px;
    height: 200px;
    top: 55%;
    left: 12%;
    animation-duration: 28s;
    animation-delay: -10s;
}

.geo-hexagon-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 15%;
    animation-duration: 24s;
    animation-delay: -3s;
}

.geo-triangle-2 {
    width: 160px;
    height: 160px;
    top: 35%;
    left: 60%;
    animation-duration: 30s;
    animation-delay: -8s;
}

.geo-circle-2 {
    width: 100px;
    height: 100px;
    top: 85%;
    left: 40%;
    animation-duration: 26s;
    animation-delay: -12s;
}

.geo-hexagon-3 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 45%;
    animation-duration: 27s;
    animation-delay: -7s;
}

.geo-triangle-3 {
    width: 110px;
    height: 110px;
    top: 50%;
    right: 5%;
    animation-duration: 23s;
    animation-delay: -15s;
}

@keyframes geoFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(15deg);
    }
    50% {
        transform: translate(-15px, 20px) rotate(-10deg);
    }
    75% {
        transform: translate(25px, 10px) rotate(8deg);
    }
}

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

.hero-content {
    text-align: center;
    opacity: 0;
    animation: heroFadeIn 2s ease-out 0.5s forwards;
}

.hero-title {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--pastel-lilac), var(--frost-white), var(--geometric-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--steel-blue);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Workshop Section --- */
.workshop {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

/* --- Marble Texture Panels --- */
.marble-panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    cursor: default;
}

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

.marble-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(208, 200, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(176, 160, 208, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(208, 160, 160, 0.04) 0%, transparent 60%),
        linear-gradient(135deg, rgba(208, 200, 216, 0.03) 0%, transparent 40%, rgba(176, 160, 208, 0.02) 70%, transparent 100%);
    z-index: 0;
    border-radius: 12px;
}

.marble-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(208, 200, 216, 0.1);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
}

.panel-inner {
    position: relative;
    z-index: 2;
    padding: 48px;
}

.panel-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
}

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

.panel-title {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--frost-white);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.panel-text {
    color: var(--steel-blue);
    font-weight: 300;
    line-height: 1.8;
}

/* Panel depth shadows */
.marble-panel {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 8px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(208, 200, 216, 0.05);
}

.marble-panel:hover {
    box-shadow:
        0 6px 30px rgba(0, 0, 0, 0.4),
        0 12px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(208, 200, 216, 0.08);
    transition: box-shadow 0.4s ease;
}

/* Staggered panel appearance delays */
.panel-1.visible { transition-delay: 0s; }
.panel-2.visible { transition-delay: 0.15s; }
.panel-3.visible { transition-delay: 0.3s; }
.panel-4.visible { transition-delay: 0.45s; }

/* --- Secrets Section --- */
.secrets {
    position: relative;
    z-index: 1;
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--frost-white);
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 0.1em;
}

.secrets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.secret-room {
    position: relative;
    border: 1px solid rgba(96, 176, 176, 0.15);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s ease;
}

.secret-room:hover {
    border-color: rgba(96, 176, 176, 0.35);
}

.secret-room.unsealed {
    border-color: rgba(96, 176, 176, 0.4);
}

.room-door {
    padding: 40px 32px;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.secret-room.unsealed .room-door {
    opacity: 0.4;
    transform: translateY(-10px);
}

.room-label {
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--geometric-teal);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.room-hint {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--steel-blue);
    opacity: 0.5;
    letter-spacing: 0.15em;
    transition: opacity 0.3s ease;
}

.secret-room:hover .room-hint {
    opacity: 0.8;
}

.room-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, padding 0.6s ease;
    padding: 0 32px;
}

.secret-room.unsealed .room-content {
    max-height: 200px;
    padding: 0 32px 36px;
}

.room-content p {
    font-weight: 300;
    color: var(--marble-vein);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* --- Hackathon Section --- */
.hackathon {
    position: relative;
    z-index: 1;
    padding: 140px 40px;
    text-align: center;
}

.hackathon-content {
    max-width: 900px;
    margin: 0 auto;
}

.hackathon-text {
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--steel-blue);
    line-height: 2;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hackathon-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.stat-block {
    padding: 40px 20px;
    border: 1px solid rgba(176, 160, 208, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(176, 160, 208, 0.04) 0%, transparent 70%);
    transition: border-color 0.4s ease;
}

.stat-block:hover {
    border-color: rgba(176, 160, 208, 0.25);
}

.stat-value {
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--frost-white);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--pastel-lilac);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Station Log / Footer --- */
.station-log {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(96, 176, 176, 0.1);
}

.log-content {
    max-width: 800px;
    margin: 0 auto;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.log-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--geometric-teal);
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.log-title {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--geometric-teal);
    letter-spacing: 0.1em;
}

.log-entry {
    font-weight: 300;
    color: var(--steel-blue);
    opacity: 0.7;
    margin-bottom: 32px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.log-coordinates {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.log-coordinates span {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--pastel-coral);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .secrets-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hackathon-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero {
        padding: 40px 24px;
    }

    .workshop,
    .secrets,
    .hackathon,
    .station-log {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        letter-spacing: 0.08em;
    }

    .panel-inner {
        padding: 32px 24px;
    }

    .log-coordinates {
        flex-direction: column;
        gap: 12px;
    }
}
