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

body {
    font-family: "Inter", sans-serif;
    background-color: #0a0f1d;
    color: #e0e6f0;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Scroll Tracer */
.scroll-tracer {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 4px;
    height: calc(100vh - 48px);
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 999;
}

.tracer-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #d8b4fe, #7c3aed);
    border-radius: 9999px;
    transition: height 0.1s ease-out;
}

/* Container */
.container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Section cards */
.section {
    margin-bottom: 5rem;
    padding: 2.2rem 2.5rem;
    backdrop-filter: blur(12px);
    background: rgba(18, 24, 41, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.2rem;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(139, 92, 246, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

.section:hover {
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

/* Badge */
.badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    color: #ddd;
    border-radius: 1rem;
    text-transform: uppercase;
    border: 1px solid rgba(139, 92, 246, 0.3);
    letter-spacing: 0.05em;
}

/* Title */
.title {
    font-family: "CalSans", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.2rem 0;
    color: #fff;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Image */
.beam-content img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.8rem 0;
    object-fit: cover;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Text */
.beam-content p {
    margin-bottom: 1.2rem;
    color: #c5d0e0;
    font-size: 1.1rem;
    font-weight: 300;
}

.beam-content sup {
    font-size: 0.8em;
    color: #a5b4fc;
}

/* Footer */
.credit {
    text-align: center;
    margin-top: 6rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.section .image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.section .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.section.visible .image-container img {
  transform: scale(1.05);
}
