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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #faf7f2;
}

.page {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Canvas texture layer */
#texture-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.65;
}

.page-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        /* Balanced highlights for depth */
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(255, 255, 255, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 700px 500px at 80% 70%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

.page-2 {
    background: #faf7f2;
}

.page-3 {
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
}

.page-4 {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blackswan-title {
    text-align: center;
    margin-bottom: 3rem;
}

.blackswan-operation {
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 5rem;
    color: #ffb800;
    letter-spacing: 0.1em;
    font-weight: normal;
    margin: 0;
    margin-bottom: 0.5rem;
}

.blackswan-name {
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 6rem;
    color: #ffb800;
    letter-spacing: 0.1em;
    font-weight: normal;
    margin: 0;
    margin-bottom: 1.5rem;
}

.blackswan-subtitle {
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.15em;
    font-weight: normal;
    margin: 0 auto;
    max-width: 50rem;
}

.blackswan-event-example {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.event-notification-container {
    width: 30%;
    min-width: 350px;
    max-width: 400px;
    height: 320px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
}

.event-notification-header {
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-notification-title {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.event-notification-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.55rem;
    font-weight: normal;
}

.event-notification-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-height: 60px;
    overflow: hidden;
}

.event-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.event-gif-container {
    width: 60%;
    min-width: 600px;
    max-width: 800px;
    height: 450px;
    border: none;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-wanview-container {
    width: 30%;
    min-width: 350px;
    max-width: 400px;
    height: 320px;
    border: none;
    background: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-wanview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-notification-details {
    border-top: 1px solid rgba(239, 68, 68, 0.3);
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    padding: 0.5rem 0.75rem;
    font-size: 0.5rem;
    line-height: 1.4;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.event-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-type {
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: bold;
}

.event-impact {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.15rem 0.4rem;
    font-size: 0.45rem;
    border-radius: 2px;
}

.event-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.event-description strong {
    color: #fff;
    font-weight: bold;
}

.event-meta {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.45rem;
    margin-bottom: 0.5rem;
}

.event-meta strong {
    color: #fff;
}

.event-affected {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.45rem;
    line-height: 1.5;
}

.event-affected > div:first-child {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.event-notification-button {
    background: rgba(239, 68, 68, 0.2);
    border-top: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem;
    text-align: center;
    color: #ef4444;
    font-size: 0.6rem;
    cursor: pointer;
    transition: background 0.15s;
}

.event-notification-button:hover {
    background: rgba(239, 68, 68, 0.3);
}

.event-notification-details::-webkit-scrollbar {
    width: 4px;
}

.event-notification-details::-webkit-scrollbar-track {
    background: rgba(239, 68, 68, 0.1);
}

.event-notification-details::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.3);
    border-radius: 2px;
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 2rem;
}

.content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content h1 {
    color: #3a3a3a;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.content p {
    color: #5a5a5a;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Scrolling text from right to left */
.scrolling-text {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 6rem;
    font-weight: 300;
    font-family: 'Tiempos Headline', serif;
    color: #1a1a2e;
    z-index: 15;
    pointer-events: none;
    animation: scroll-left 11.75s linear 1;
}

.scrolling-text .letter {
    display: inline-block;
    position: relative;
}

.scrolling-text .letter-main {
    display: inline-block;
    position: relative;
    z-index: 2;
    will-change: opacity, filter, transform;
}

.scrolling-text .letter.space {
    display: inline-block;
    width: 0.3em;
    opacity: 1;
}

@keyframes letter-emerge {
    0% {
        opacity: 0;
        transform: scale(0.6) translateX(0);
        filter: blur(20px);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.05) translateX(0);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
        filter: blur(0);
    }
}

.scrolling-text .letter {
    display: inline-block;
    position: relative;
}

.scrolling-text .letter-main {
    display: inline-block;
    position: relative;
    z-index: 2;
    will-change: opacity, filter, transform;
}

.scrolling-text .ink-bleed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #2d3561;
    z-index: 1;
    pointer-events: none;
    will-change: opacity, filter, transform;
}

.scrolling-text .ink-cloud {
    position: absolute;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle, rgba(45, 53, 97, 0.4) 0%, rgba(26, 26, 46, 0.25) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    will-change: width, height, opacity, transform;
}

@keyframes scroll-left {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

/* Main title - CIRRUSLY CLEVER */
.main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 700;
    font-family: 'Tiempos Headline', serif;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    filter: blur(20px);
    animation: surface-from-water 2s ease-out 9.5s forwards;
}

.page-1-projects-link {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 25;
}

.page-1-projects-link a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    color: #7a7a7a;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.page-1-projects-link a:hover {
    color: #1a1a2e;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.page-1-about-link {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 25;
}

.page-1-about-link a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    color: #7a7a7a;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.page-1-about-link a:hover {
    color: #1a1a2e;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

@keyframes surface-from-water {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.8);
        filter: blur(25px);
    }
    50% {
        opacity: 0.7;
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0px);
    }
}

@keyframes blow-letter-away {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: blur(0px);
    }
    30% {
        opacity: 0.9;
        filter: blur(1px);
    }
    60% {
        opacity: 0.6;
        filter: blur(3px);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(var(--rotation)) scale(0.5);
        filter: blur(10px);
    }
}

.blown-letter {
    /* Inherit from .main-title */
    display: inline-block;
    position: relative;
}

.main-title .title-letter:nth-child(1) { --rand-x: 5px; --rand-y: -3px; --rand-rot: 1; }
.main-title .title-letter:nth-child(2) { --rand-x: -2px; --rand-y: 4px; --rand-rot: -0.8; }
.main-title .title-letter:nth-child(3) { --rand-x: 3px; --rand-y: -5px; --rand-rot: 1.2; }
.main-title .title-letter:nth-child(4) { --rand-x: -4px; --rand-y: 2px; --rand-rot: -1.1; }
.main-title .title-letter:nth-child(5) { --rand-x: 6px; --rand-y: -4px; --rand-rot: 0.9; }
.main-title .title-letter:nth-child(6) { --rand-x: -3px; --rand-y: 5px; --rand-rot: -1.3; }
.main-title .title-letter:nth-child(7) { --rand-x: 4px; --rand-y: -2px; --rand-rot: 1.1; }
.main-title .title-letter:nth-child(8) { --rand-x: -5px; --rand-y: 3px; --rand-rot: -0.7; }
.main-title .title-letter:nth-child(9) { --rand-x: 2px; --rand-y: -6px; --rand-rot: 1.4; }
.main-title .title-letter:nth-child(10) { --rand-x: -6px; --rand-y: 4px; --rand-rot: -1.2; }
.main-title .title-letter:nth-child(11) { --rand-x: 7px; --rand-y: -3px; --rand-rot: 0.8; }
.main-title .title-letter:nth-child(12) { --rand-x: -4px; --rand-y: 5px; --rand-rot: -1.5; }
.main-title .title-letter:nth-child(13) { --rand-x: 3px; --rand-y: -4px; --rand-rot: 1.3; }
.main-title .title-letter:nth-child(14) { --rand-x: -7px; --rand-y: 6px; --rand-rot: -0.9; }
.main-title .title-letter:nth-child(15) { --rand-x: 5px; --rand-y: -5px; --rand-rot: 1.0; }
.main-title .title-letter:nth-child(16) { --rand-x: -3px; --rand-y: 4px; --rand-rot: -1.1; }
.main-title .title-letter:nth-child(17) { --rand-x: 6px; --rand-y: -2px; --rand-rot: 0.7; }
.main-title .title-letter:nth-child(18) { --rand-x: -5px; --rand-y: 3px; --rand-rot: -1.4; }

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #faf7f2;
    z-index: 50;
    opacity: 0;
    animation: fade-in-overlay 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes fade-in-overlay {
    0% {
        opacity: 0;
    }
    40% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}

/* Thick ripple effect from bottom right */
.ripple {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 0;
    height: 0;
    border: 0px solid rgba(240, 230, 200, 0.15);
    border-radius: 50%;
    transform: translate(50%, 50%);
    animation: ripple-expand 8s ease-out 0.65s 1;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: multiply;
    opacity: 0;
    visibility: hidden;
}

/* Page 2 - Assay text */
.assay-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12rem;
    font-weight: 400;
    font-family: 'Alex Brush', cursive;
    color: #1a1a2e;
    text-transform: none;
    letter-spacing: 0.05em;
    z-index: 20;
    pointer-events: none;
    opacity: 1;
}

.assay-references {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 25;
}

.assay-references-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: #8a8a8a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.assay-references-links {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #7a7a7a;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.assay-references-links a {
    color: #7a7a7a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.assay-references-links a:hover {
    color: #3a3a3a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.assay-references-separator {
    margin: 0 0.5rem;
    color: #9a9a9a;
}

.blackswan-references {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 25;
}

.blackswan-references-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blackswan-references-links {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.blackswan-references-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blackswan-references-links a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.blackswan-references-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.ctf-references {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 25;
}

.ctf-references-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ctf-references-links {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.ctf-references-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ctf-references-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ctf-references-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.blackswan-mission-button {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
}

.blackswan-mission-button a {
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 1.5rem;
    color: #ffb800;
    text-decoration: none;
    border: 2px solid #ffb800;
    padding: 0.75rem 2rem;
    display: inline-block;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blackswan-mission-button a:hover {
    background: rgba(255, 184, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
    transform: translateY(-2px);
}

.assay-content {
    position: absolute;
    top: calc(25% + 5.5rem);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    opacity: 0;
    animation: fade-in 0.8s ease-out 1.7s forwards;
    width: 80%;
    max-width: 800px;
    padding-top: 0;
}

.assay-subtitle {
    font-size: 2.4rem;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.4;
    margin-top: 0;
}

.assay-description {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #3a3a3a;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.assay-mcp-showcase {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 1rem;
    max-width: 1600px;
    opacity: 0;
    animation: fade-in-screenshots 1s ease-out 3.5s forwards;
}

.assay-showcase-image {
    width: 35%;
    height: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    background: #faf7f2;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    transform: scale(1.08);
}

.mcp-simulation-container {
    width: 28%;
    min-width: 400px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.simulation-header {
    background: #0d0d0d;
    border-bottom: 1px solid #333;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.window-controls .control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-controls .control.red {
    background: #ff5f57;
}

.window-controls .control.yellow {
    background: #febc2e;
}

.window-controls .control.green {
    background: #28c840;
}

.simulation-title {
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    line-height: 1.6;
    min-height: 0;
}

.chat-area::-webkit-scrollbar {
    width: 6px;
}

.chat-area::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chat-area::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.message {
    margin-bottom: 1rem;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.assistant-message {
    display: flex;
    justify-content: flex-start;
}

.message-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    word-wrap: break-word;
    font-size: 0.75rem;
    line-height: 1.6;
}

.user-bubble {
    background: #2d2d2d;
    color: #fff;
}

.assistant-bubble {
    background: transparent;
    color: #fff;
}

.assistant-bubble h1 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    color: #fff;
}

.assistant-bubble h2 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    color: #fff;
}

.assistant-bubble h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0 0.375rem 0;
    color: #fff;
}

.assistant-bubble strong {
    font-weight: 600;
    color: #fff;
}

.tool-use {
    margin-top: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.375rem;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-header {
    padding: 0.5rem 0.75rem;
    background: #0d0d0d;
    border-bottom: 1px solid #333;
    font-size: 0.7rem;
    color: #888;
}

.tool-name {
    font-family: monospace;
    font-weight: 500;
}

.tool-result {
    padding: 0.75rem;
    font-size: 0.7rem;
    color: #aaa;
    font-family: monospace;
    line-height: 1.5;
}

.simulation-footer {
    background: #0d0d0d;
    border-top: 1px solid #333;
    padding: 0.5rem 0.75rem;
}

.input-placeholder {
    background: #2d2d2d;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: #888;
    font-size: 0.75rem;
}

@keyframes fade-in-screenshots {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .assay-mcp-showcase {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .assay-showcase-image {
        max-width: 90%;
    }
    
    .mcp-simulation-container {
        max-width: 90%;
        max-height: 350px;
    }
    
    .chat-area {
        height: 280px;
    }
}

.assay-loved,
.assay-learned {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a1a2e;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.assay-loved {
    margin-top: 3rem;
}

.assay-link {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin-top: 1rem;
    line-height: 1.6;
}

.assay-link a {
    color: #1a1a2e;
    text-decoration: none;
    border-bottom: 2px solid #1a1a2e;
    padding-bottom: 2px;
    transition: opacity 0.3s, border-color 0.3s;
}

.assay-link a:hover {
    opacity: 0.7;
    border-color: rgba(26, 26, 46, 0.5);
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.assay-text .letter {
    display: inline-block;
    opacity: 0;
    animation: type-in 0.5s ease-out forwards;
}

.assay-text .letter:nth-child(1) { animation-delay: 0s; }
.assay-text .letter:nth-child(2) { animation-delay: 0.3s; }
.assay-text .letter:nth-child(3) { animation-delay: 0.6s; }
.assay-text .letter:nth-child(4) { animation-delay: 0.9s; }
.assay-text .letter:nth-child(5) { animation-delay: 1.2s; }

@keyframes type-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Screen 3 - Number 3 */
.screen-3-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    font-weight: 700;
    font-family: 'Tiempos Headline', serif;
    color: #1a1a2e;
    z-index: 20;
    pointer-events: none;
    opacity: 1;
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        border-width: 0px;
        border-color: rgba(240, 230, 200, 0);
        opacity: 0;
        visibility: hidden;
    }
    0.1% {
        width: 0;
        height: 0;
        border-width: 360px;
        border-color: rgba(240, 230, 200, 0.15);
        opacity: 0.6;
        visibility: visible;
    }
    50% {
        border-color: rgba(240, 230, 200, 0.15);
        opacity: 0.3;
        visibility: visible;
    }
    100% {
        width: 300vh;
        height: 300vh;
        border-width: 270px;
        border-color: rgba(240, 230, 200, 0.15);
        opacity: 0;
        visibility: visible;
    }

/* Operation: Blackswan Terminal Styling */
.blackswan-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    font-family: 'Consolas', 'Courier New', 'Monaco', 'Menlo', monospace;
    background: #1a1a1a;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* CRT Flicker Effect */
.blackswan-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

/* Text Glow Animation - matches Operation: Blackswan */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 4px #ffb800, 0 0 8px #ffb800, 0 0 12px #ffb800;
    }
    50% {
        text-shadow: 0 0 2px #ffb800, 0 0 4px #ffb800, 0 0 6px #ffb800;
    }
}

.text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

.blackswan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 184, 0, 0.3);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.blackswan-header-left {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.blackswan-dept {
    margin-bottom: 0.25rem;
}

.blackswan-command {
    cursor: pointer;
}

.blackswan-header-right {
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.blackswan-status,
.blackswan-terminal {
    margin-bottom: 0.25rem;
}

.blackswan-primary {
    color: #4a9eff !important; /* Blue for interactive link */
    font-weight: normal;
}

.blackswan-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -4rem;
}

.blackswan-title-section {
    margin-bottom: 3rem;
}

.blackswan-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
}

.blackswan-title-main {
    font-size: 5rem;
    color: #4a9eff !important; /* Blue for interactive link */
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: normal;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace !important;
    animation: textGlow 2s ease-in-out infinite;
    text-shadow: 0 0 4px #ffb800, 0 0 8px #ffb800;
}

.blackswan-title-sub {
    font-size: 6rem;
    color: #4a9eff !important; /* Blue for interactive link */
    letter-spacing: 0.1em;
    font-weight: normal;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace !important;
    animation: textGlow 2s ease-in-out infinite;
    text-shadow: 0 0 4px #ffb800, 0 0 8px #ffb800;
    margin-bottom: 1.5rem;
}

.blackswan-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
}

.blackswan-description {
    max-width: 50rem;
    width: 100%;
    margin: 2rem auto 2rem;
    padding: 0 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1.125rem;
    text-align: center;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace;
}

.blackswan-prompt {
    color: #4a9eff !important; /* Blue for interactive link */
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace !important;
}

.blackswan-description p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 1.125rem;
}

.blackswan-link {
    margin-top: 2rem;
}

.blackswan-link a {
    color: #4a9eff !important; /* Blue for interactive link */
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    font-family: 'VT323', 'Courier New', 'Consolas', 'Monaco', 'Menlo', monospace !important;
    border: 1px solid rgba(74, 158, 255, 0.3);
    padding: 1rem 2rem;
    display: inline-block;
    transition: all 0.15s;
}

.blackswan-link a:hover {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    text-shadow: 0 0 4px #4a9eff, 0 0 8px #4a9eff;
}

.blackswan-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 184, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.blackswan-footer-left {
    text-align: left;
}

.blackswan-footer-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.blackswan-footer-center span {
    color: rgba(255, 255, 255, 0.7);
}

.blackswan-footer-right {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blackswan-title-main {
        font-size: 3rem;
    }
    
    .blackswan-title-sub {
        font-size: 4rem;
    }
    
    .blackswan-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blackswan-header-right {
        text-align: left;
    }
    
    .blackswan-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .blackswan-footer-left,
    .blackswan-footer-right {
        text-align: center;
    }
}


/* Page 5 - Cloud Sayings (GenAI) */
.page-5 {
    position: relative;
    background: #000;
    overflow: hidden;
}

/* Matrix Canvas Background */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Centered Logo Container */
.cloudsayings-references {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 25;
}

.cloudsayings-references-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: #8a8a8a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cloudsayings-references-links {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: #7a7a7a;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.cloudsayings-references-links a {
    color: #7a7a7a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cloudsayings-references-links a:hover {
    color: #3a3a3a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cloudsayings-references-separator {
    margin: 0 0.5rem;
    color: #9a9a9a;
}

.cloudsayings-references-separator {
    margin: 0 0.5rem;
    color: rgba(37, 99, 235, 0.5);
}

.cloudsayings-logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cloudsayings-link {
    margin-top: 2rem;
}

.cloudsayings-link a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #2563eb;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2563eb;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
}

.cloudsayings-link a:hover {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Main Logo */
.cloudsayings-main-logo {
    max-width: 500px;
    width: 80vw;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.2));
}

@media (max-width: 768px) {
    .cloudsayings-main-logo {
        max-width: 350px;
    }
}

/* Old cloud sayings styles - keeping for reference but not used */
@keyframes gradient-float {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cloudsayings-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

/* Header Section */
.cloudsayings-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cloudsayings-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cloudsayings-logo {
    width: 60px;
    height: 60px;
    animation: logo-float 3s ease-in-out infinite;
}

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

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(94, 234, 212, 0.4));
}

.cloudsayings-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(59, 130, 246, 0.2);
}

.cloudsayings-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #2563eb;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Content Section */
.cloudsayings-content {
    max-width: 700px;
    width: 100%;
}

.cloudsayings-description {
    text-align: center;
    margin-bottom: 2rem;
}

.cloudsayings-description p {
    color: #1f2937;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cloudsayings-features {
    font-size: 0.875rem !important;
    color: #4b5563 !important;
    font-style: italic;
}

/* Demo Box */
.cloudsayings-demo-box {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15),
                0 4px 12px rgba(59, 130, 246, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    border: 2px solid rgba(147, 197, 253, 0.3);
}

.demo-button-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cloudsayings-button {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cloudsayings-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.button-icon {
    font-size: 1.5rem;
    animation: cloud-bounce 2s ease-in-out infinite;
}

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

/* Saying Display */
.cloudsayings-saying-display {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.saying-text {
    font-size: 1.125rem;
    color: #1f2937;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.saying-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.saying-source {
    font-weight: 500;
    color: #2563eb;
}

.saying-time {
    opacity: 0.7;
}

/* Feedback Section */
.cloudsayings-feedback {
    text-align: center;
    margin-bottom: 1.5rem;
}

.feedback-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.feedback-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.feedback-btn:hover {
    transform: scale(1.1);
}

.feedback-btn:active {
    transform: scale(1.25);
}

.cloud-icon {
    width: 64px;
    height: 64px;
    transition: all 0.3s ease;
}

.feedback-positive .cloud-icon {
    color: #3b82f6;
}

.feedback-positive:hover .cloud-icon {
    color: #2563eb;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.4));
}

.feedback-negative .cloud-icon {
    color: #6b7280;
}

.feedback-negative:hover .cloud-icon {
    color: #4b5563;
    filter: drop-shadow(0 4px 8px rgba(107, 114, 128, 0.4));
}

/* Score Display */
.cloudsayings-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 0.75rem;
    border: 2px solid #93c5fd;
}

.score-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.score-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
    min-width: 60px;
    text-align: center;
    animation: score-pulse 2s ease-in-out infinite;
}

@keyframes score-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Links Section */
.cloudsayings-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.cloudsayings-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #2563eb;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 0.5rem;
    border: 2px solid #3b82f6;
    transition: all 0.3s ease;
    display: inline-block;
}

.cloudsayings-link:hover {
    background: #2563eb;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cloudsayings-link-secondary {
    border-color: #93c5fd;
    color: #1e40af;
}

.cloudsayings-link-secondary:hover {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cloudsayings-title {
        font-size: 1.75rem;
    }

    .cloudsayings-logo {
        width: 50px;
        height: 50px;
    }

    .cloudsayings-demo-box {
        padding: 1.5rem;
    }

    .saying-text {
        font-size: 1rem;
    }

    .cloud-icon {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile First: Base styles for phones (up to 480px) */
@media (max-width: 480px) {
    /* Main Landing Page (index.html) */
    .scrolling-text {
        font-size: 2.5rem;
        animation-duration: 8s;
    }

    .main-title {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }

    .page-1-projects-link,
    .page-1-about-link {
        bottom: 1.5rem;
    }

    .page-1-projects-link {
        right: 1.5rem;
    }

    .page-1-about-link {
        left: 1.5rem;
    }

    .page-1-projects-link a,
    .page-1-about-link a {
        font-size: 1.25rem;
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Content sections */
    .content h1 {
        font-size: 2rem;
    }

    .content p {
        font-size: 1rem;
    }

    .content {
        padding: 1rem;
    }

    /* Black Swan titles */
    .blackswan-operation {
        font-size: 2.5rem;
    }

    .blackswan-name {
        font-size: 3rem;
    }

    .blackswan-title-main {
        font-size: 2rem;
    }

    .blackswan-title-sub {
        font-size: 2.5rem;
    }

    /* CTF Challenge */
    .ctf-title {
        font-size: 2rem;
    }

    .ctf-subtitle {
        font-size: 0.875rem;
    }

    /* Assay showcase */
    .assay-mcp-showcase {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .assay-showcase-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        transform: scale(1);
    }

    .mcp-simulation-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 300px;
    }

    /* Assay text */
    .assay-text {
        font-size: 3rem;
    }

    .assay-subtitle {
        font-size: 1.125rem;
    }

    .assay-description {
        font-size: 0.95rem;
    }
}

/* Tablet and small desktop (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .scrolling-text {
        font-size: 4rem;
    }

    .main-title {
        font-size: 5rem;
    }

    .page-1-projects-link a,
    .page-1-about-link a {
        font-size: 1.5rem;
    }

    .blackswan-operation {
        font-size: 3.5rem;
    }

    .blackswan-name {
        font-size: 4.5rem;
    }

    .assay-text {
        font-size: 4rem;
    }

    .assay-mcp-showcase {
        flex-direction: column;
        gap: 1.5rem;
    }

    .assay-showcase-image {
        width: 80%;
        max-width: 500px;
    }

    .mcp-simulation-container {
        width: 80%;
        max-width: 500px;
        min-width: 0;
    }
}

/* General mobile adjustments (up to 768px) */
@media (max-width: 768px) {
    /* Ensure touch targets are at least 44x44px */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove fixed min-widths that break mobile */
    .event-notification,
    .event-wanview-container {
        min-width: 0;
        max-width: 100%;
    }

    /* Adjust padding for mobile */
    .container {
        padding: 1rem;
    }

    .content {
        padding: 1rem;
    }

    /* Project pages padding */
    .project-page {
        padding: 1.5rem;
    }

    /* Back links */
    .back-link {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .back-link a {
        font-size: 1rem;
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* References sections */
    .assay-references,
    .cloudsayings-references {
        top: 1.5rem;
        left: 1.5rem;
        font-size: 0.7rem;
    }

    /* About page */
    .about-content {
        padding: 1.5rem;
    }

    .about-content h1 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-links {
        font-size: 1rem;
    }

    /* Projects page navigation */
    .stage-navigation {
        gap: 1rem;
    }

    .stage-navigation button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

/* Projects page specific mobile styles */
@media (max-width: 768px) {
    .project-stage {
        padding: 2rem 1.5rem;
    }

    .stage-assay .project-title {
        font-size: 3rem;
    }

    .stage-assay .project-tagline {
        font-size: 1.125rem;
    }

    .stage-assay .project-description {
        font-size: 0.95rem;
    }

    .stage-blackswan .project-title {
        font-size: 2.5rem;
    }

    .stage-ctf .project-title {
        font-size: 2.5rem;
    }

    .stage-cloudsayings .project-title {
        font-size: 2rem;
    }

    .project-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .learn-more-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
    }
}

/* Landscape mobile (up to 768px height) */
@media (max-height: 768px) and (orientation: landscape) {
    .main-title {
        font-size: 4rem;
    }

    .scrolling-text {
        font-size: 3rem;
    }

    .page-1-projects-link,
    .page-1-about-link {
        bottom: 1rem;
    }
}
