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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
    background: #111111;
}

.horizontal-scroll-container {
    display: flex;
    width: 500vw;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-dark {
    background: #111111;
    color: #FFFFFF;
}

.panel-light {
    background: #FFFFFF;
    color: #000000;
}

.panel-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    text-align: center;
}

h1 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #888888;
    margin-bottom: 3rem;
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2rem;
}

blockquote {
    font-style: italic;
    font-size: 1.3rem;
    color: #888888;
    border-left: 3px solid #FF3B30;
    padding-left: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.panel-light blockquote {
    color: #888888;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #888888;
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-hint .arrow {
    font-size: 1.5rem;
    color: #FF3B30;
}

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

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.research-item {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.research-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FF3B30;
    display: block;
    margin-bottom: 0.5rem;
}

/* Method Tags */
.method-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.method-tag {
    padding: 0.5rem 1.5rem;
    border: 1px solid #000000;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact */
.contact-link {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: #FF3B30;
    text-decoration: none;
    border-bottom: 2px solid #FF3B30;
    padding-bottom: 0.25rem;
    margin-bottom: 3rem;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.7;
}

.footer-mark {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #888888;
}

/* Water Bubbles */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    backdrop-filter: blur(4px);
    animation: floatBubble 8s ease-in-out infinite;
}

.panel-light .bubble {
    background: radial-gradient(circle at 30% 30%, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-5px); }
    75% { transform: translateY(-25px) translateX(8px); }
}

/* Glitch Overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.glitch-overlay.active {
    animation: glitchFlash 0.4s steps(4) forwards;
}

@keyframes glitchFlash {
    0% { opacity: 1; clip-path: inset(10% 0 80% 0); background: #FF3B30; }
    25% { opacity: 1; clip-path: inset(40% 0 20% 0); background: #FF3B30; }
    50% { opacity: 1; clip-path: inset(70% 0 5% 0); background: #FF3B30; }
    75% { opacity: 0.5; clip-path: inset(20% 0 60% 0); background: #FF3B30; }
    100% { opacity: 0; clip-path: inset(0 0 100% 0); }
}

/* Glitch text effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text:hover::before {
    opacity: 1;
    color: #FF3B30;
    clip-path: inset(0 0 60% 0);
    transform: translateX(-3px);
    animation: glitchText 0.3s steps(2) infinite;
}

.glitch-text:hover::after {
    opacity: 1;
    color: #888888;
    clip-path: inset(60% 0 0 0);
    transform: translateX(3px);
    animation: glitchText 0.3s steps(2) infinite reverse;
}

@keyframes glitchText {
    0% { clip-path: inset(0 0 60% 0); }
    50% { clip-path: inset(40% 0 20% 0); }
    100% { clip-path: inset(10% 0 50% 0); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .research-grid { grid-template-columns: 1fr; }
}
