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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* ========================================
   ORIGIN STORY TIMELINE
   ======================================== */

.origin-timeline {
    min-height: 100vh;
    width: 100%;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, #000000, #0a0a0a);
}

.origin-header {
    text-align: center;
    margin-bottom: 6rem;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-badge.origin {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8A2BE2;
    color: #8A2BE2;
}

.origin-header h1 {
    font-size: 3rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #8A2BE2, #DA70D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.origin-subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

/* TIMELINE CONTAINER */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* VERTICAL LINE */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(138, 43, 226, 0.3) 10%,
        rgba(138, 43, 226, 0.6) 50%,
        rgba(138, 43, 226, 0.3) 90%,
        transparent
    );
    transform: translateX(-50%);
}

/* TIMELINE STEPS */
.timeline-step {
    position: relative;
    margin-bottom: 8rem;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll animation states */
.timeline-step.step-visible {
    opacity: 1;
}

.timeline-step.step-right {
    transform: translateX(-100px);
}

.timeline-step.step-right.step-visible {
    transform: translateX(0);
}

.timeline-step.step-left {
    transform: translateX(100px);
}

.timeline-step.step-left.step-visible {
    transform: translateX(0);
}

/* STEP NUMBER - Center Circle */
.step-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8A2BE2, #6A1BB2);
    border: 3px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.timeline-step.step-visible .step-number {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(138, 43, 226, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(138, 43, 226, 0.9),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* STEP CARD - Positioned Left or Right */
.step-card {
    width: 45%;
    padding: 2.5rem;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
    transition: all 0.4s ease;
}

.step-right .step-card {
    margin-left: 55%;
}

.step-left .step-card {
    margin-right: 55%;
}

.step-card:hover {
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.4);
    transform: translateY(-5px);
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #8A2BE2;
    letter-spacing: 0.05em;
}

.step-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

/* ORIGIN FOOTER */
.origin-footer {
    text-align: center;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

/* ========================================
   FORM DESIGN EVOLUTION SECTION - CAROUSEL LAYOUT
   ======================================== */

.form-evolution-section {
    min-height: 100vh;
    width: 100%;
    padding: 4rem 0;
    background: linear-gradient(to bottom, #0a0a0a, #000000);
}

.form-evolution-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.version-badge.form {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #FFA500;
    color: #FFD700;
}

.form-evolution-header h1 {
    font-size: 3rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.evolution-subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 800px;
    margin: 0 auto;
}

/* HORIZONTAL SCROLL CONTAINER */
.horizontal-scroll-container {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
}

.scroll-hint {
    text-align: center;
    margin-bottom: 2rem;
    color: #FFD700;
    font-size: 1.1rem;
    animation: bounce 2s ease-in-out infinite;
}

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

/* CAROUSEL WRAPPER */
.horizontal-scroll-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    padding-left: calc(50vw - 500px);
    padding-right: calc(50vw - 500px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 165, 0, 0.5) rgba(0, 0, 0, 0.3);
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 4px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 165, 0, 0.7);
}

/* FORM CARD - CAROUSEL STYLE */
.form-card {
    flex: 0 0 1000px;
    height: 600px;
    scroll-snap-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.4);
    opacity: 0.5;
    transform: scale(0.85);
}

.form-card:hover {
    border-color: rgba(255, 165, 0, 0.6);
}

/* ACTIVE CARD - Center Stage */
.form-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 165, 0, 0.9);
    box-shadow: 0 0 80px rgba(255, 165, 0, 0.9);
    z-index: 10;
}

.form-card.highlight-card.active {
    border-color: rgba(0, 255, 136, 0.9);
    box-shadow: 0 0 100px rgba(0, 255, 136, 0.8);
}

/* BLUEPRINT CARD - Special Styling */
.blueprint-card {
    flex: 0 0 1100px;
    grid-template-columns: 1fr;
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.5);
}

.blueprint-card.active {
    border-color: rgba(138, 43, 226, 0.9);
    box-shadow: 0 0 100px rgba(138, 43, 226, 0.8);
}

/* LEARNINGS CARD - Special Layout */
.learnings-card {
    flex: 0 0 1200px;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 600px;
    border-color: rgba(218, 112, 214, 0.5);
    box-shadow: 0 0 50px rgba(218, 112, 214, 0.5);
}

.learnings-card.active {
    border-color: rgba(218, 112, 214, 0.9);
    box-shadow: 0 0 120px rgba(218, 112, 214, 0.8);
}

/* LEFT SIDE - SCREENSHOT */
.form-card-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* RIGHT SIDE - TEXT CONTENT */
.form-card-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    padding-right: 1rem;
}

.form-card-right::-webkit-scrollbar {
    width: 6px;
}

.form-card-right::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.form-card-right::-webkit-scrollbar-thumb {
    background: rgba(255, 165, 0, 0.5);
    border-radius: 3px;
}

/* CARD HEADER - FIXED FOR OVERLAP */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    flex-wrap: nowrap;
}

.stage-badge {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #FFA500;
    color: #FFD700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.4s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.form-card.active .stage-badge {
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
}

.stage-number {
    font-size: 1.6rem;
    font-weight: bold;
    color: rgba(255, 165, 0, 0.5);
    transition: all 0.4s ease;
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: right;
}

.form-card.active .stage-number {
    font-size: 2.2rem;
    color: rgba(255, 165, 0, 0.9);
}

/* BLUEPRINT CONTENT - FIXED OVERFLOW */
.blueprint-content {
    position: relative;
    padding: 2rem;
    background: rgba(0, 0, 10, 0.5);
    border: 1px dashed rgba(138, 43, 226, 0.4);
    border-radius: 8px;
    transition: all 0.4s ease;
    overflow: hidden;
    max-width: 100%;
}

.blueprint-grid {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.blueprint-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.blueprint-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #DA70D6;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.form-card.active .blueprint-title {
    font-size: 1.8rem;
}

.blueprint-section {
    margin-bottom: 1.5rem;
    overflow: hidden;
    max-width: 100%;
}

.blueprint-section-title {
    color: #8A2BE2;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blueprint-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #b0b0b0;
    transition: all 0.4s ease;
    max-width: 100%;
}

.form-card.active .blueprint-list {
    font-size: 1rem;
    line-height: 2;
}

.blueprint-list li {
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding-right: 0.5rem;
}

.blueprint-list li strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Color dots styling */
.color-dots {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.purple {
    background: #8A2BE2;
}

.dot.white {
    background: #ffffff;
}

.dot.pink {
    background: #FF1493;
}

/* FORM SCREENSHOT - Free-standing, no frame constraints */
.form-screenshot {
    width: 100%;
    height: 100%;
    max-height: 550px;
    overflow: visible;
    border-radius: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    position: relative;
    box-shadow: none;
}

.form-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.85) saturate(0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.form-card.active .form-screenshot {
    border: none;
    box-shadow: none;
}

.form-card.active .form-screenshot img {
    filter: brightness(1) saturate(1);
    transform: scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

.form-screenshot:hover img {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

/* Zoom hint */
.form-screenshot::after {
    content: '🔍 Click to zoom';
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.9);
    color: #FFD700;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.form-card.active .form-screenshot:hover::after {
    opacity: 1;
}

/* CARD ANNOTATION */
.card-annotation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cccccc;
    transition: all 0.4s ease;
}

.form-card.active .card-annotation {
    font-size: 1.05rem;
    line-height: 1.9;
}

.card-annotation strong {
    color: #FFD700;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.1em;
}

.card-annotation em {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.95em;
    font-style: italic;
}

/* LEARNINGS CONTENT */
.learnings-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    transition: all 0.4s ease;
}

.form-card.active .learnings-content {
    gap: 2.5rem;
}

.learning-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
}

.form-card.active .learning-section h3 {
    font-size: 1.4rem;
}

.learning-section ul {
    list-style: none;
    padding: 0;
}

.learning-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    transition: all 0.4s ease;
}

.form-card.active .learning-section li {
    font-size: 1.05rem;
    line-height: 1.8;
}

.learning-section li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: inherit;
}

/* SCROLL PROGRESS */
.scroll-progress {
    width: 90%;
    max-width: 1200px;
    height: 4px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 2px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFA500, #FFD700);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
}

/* EVOLUTION FOOTER */
.evolution-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .form-card {
        flex: 0 0 900px;
    }
}

@media (max-width: 1200px) {
    .form-card {
        flex: 0 0 800px;
        height: 550px;
    }
    
    .blueprint-card,
    .learnings-card {
        flex: 0 0 900px;
    }
}

@media (max-width: 900px) {
    .form-card {
        flex: 0 0 90vw;
        height: auto;
        min-height: 500px;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .form-card-left {
        order: 1;
    }
    
    .form-card-right {
        order: 2;
        padding-right: 0;
    }
    
    .form-screenshot {
        max-height: 400px;
    }
    
    .blueprint-card,
    .learnings-card {
        flex: 0 0 90vw;
    }
    
    .learnings-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .horizontal-scroll-wrapper {
        padding-left: 5vw;
        padding-right: 5vw;
    }
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 80px rgba(255, 165, 0, 0.8);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: #DA70D6;
    font-size: 1.1rem;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8A2BE2;
    color: #DA70D6;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(138, 43, 226, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8A2BE2;
    color: #DA70D6;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(138, 43, 226, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* SECTION WRAPPER */
.section {
    min-height: 100vh;
    width: 100%;
}

.container {
    display: grid;
    grid-template-columns: 1fr 500px;
    height: 100vh;
    width: 100vw;
}

/* REVERSE LAYOUT for V2 */
.container.reverse {
    grid-template-columns: 500px 1fr;
}

/* VERSION BADGE */
.version-badge {
    display: inline-block;
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8A2BE2;
    color: #DA70D6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* SECTION TRANSITION */
.section-transition {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #000000, #0a0005, #000000);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.transition-content {
    text-align: center;
}

.version-flow {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.version-flow .arrow {
    color: #DA70D6;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.transition-text {
    color: #888;
    font-style: italic;
    font-size: 1.1rem;
}

/* LEFT SIDE - GALLERY */
.gallery-side {
    position: relative;
    padding: 4rem 2rem;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(10, 0, 10, 0.3), rgba(0, 0, 0, 0.8));
}

.floating-frames {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
}

/* V2 frames - only 3 frames */
#v2FloatingFrames {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.frame {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
    aspect-ratio: 1;
    background: rgba(255, 165, 0, 0.05);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.6);
}

.frame:nth-child(1) { animation-delay: 0s; }
.frame:nth-child(2) { animation-delay: 0.5s; }
.frame:nth-child(3) { animation-delay: 1s; }
.frame:nth-child(4) { animation-delay: 1.5s; }
.frame:nth-child(5) { animation-delay: 2s; }
.frame:nth-child(6) { animation-delay: 2.5s; }
.frame:nth-child(7) { animation-delay: 3s; }
.frame:nth-child(8) { animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.frame:hover {
    box-shadow: 0 0 50px rgba(255, 165, 0, 0.9);
    transform: scale(1.05);
}

/* RIGHT SIDE - DETAILS */
.details-side {
    width: 500px;
    background: rgba(20, 10, 25, 0.9);
    padding: 3rem;
    overflow-y: auto;
    border-left: 1px solid rgba(138, 43, 226, 0.3);
}

.intro-card h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #8A2BE2, #DA70D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 43, 226, 0.5), 
        transparent
    );
    margin: 2rem 0;
}

.meta-info {
    margin-bottom: 1rem;
}

.meta-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #cccccc;
}

.meta-info strong {
    color: #DA70D6;
}

.content-block {
    margin-bottom: 1.5rem;
}

.content-block h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #DA70D6;
}

.content-block p {
    line-height: 1.6;
    color: #e0e0e0;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b0b0b0;
    word-wrap: break-word;
}

.schema-list {
    list-style: none;
    padding-left: 0;
}

.schema-list li {
    padding: 0.5rem 0;
    color: #e0e0e0;
}

.schema-list code {
    color: #DA70D6;
    font-family: 'Courier New', monospace;
}

.cta {
    font-style: italic;
    color: #DA70D6;
    margin-top: 2rem;
}

/* ULTRA TIGHT SPACING FOR V2 SECTION */
#v2Section .intro-card h1 {
    margin-bottom: 0.5rem !important;
}

#v2Section .divider {
    margin: 0.5rem 0 !important;
}

#v2Section .content-block {
    margin-bottom: 0.25rem !important;
}

#v2Section .meta-info {
    margin-bottom: 0.25rem !important;
}

#v2Section .content-block h3 {
    margin-bottom: 0.35rem !important;
    margin-top: 0.25rem !important;
}

#v2Section .content-block p {
    margin-bottom: 0.25rem !important;
}

#v2Section .code-block {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0.75rem !important;
}

#v2Section .cta {
    margin-top: 0.75rem !important;
}

#v2Section .schema-list li {
    padding: 0.25rem 0 !important;
}

/* Scrollbar styling */
.details-side::-webkit-scrollbar,
.gallery-side::-webkit-scrollbar {
    width: 8px;
}

.details-side::-webkit-scrollbar-track,
.gallery-side::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.details-side::-webkit-scrollbar-thumb,
.gallery-side::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 4px;
}

.details-side::-webkit-scrollbar-thumb:hover,
.gallery-side::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.7);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .step-number {
        left: 30px;
    }
    
    .step-card {
        width: calc(100% - 100px);
        margin-left: 100px !important;
        margin-right: 0 !important;
    }
    
    .timeline-step.step-right,
    .timeline-step.step-left {
        transform: translateX(50px);
    }
    
    .timeline-step.step-right.step-visible,
    .timeline-step.step-left.step-visible {
        transform: translateX(0);
    }
}
