/* Video styles with first section brighter */
#section1 .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(2) contrast(1.1) grayscale(0.3);
}

#section2 .video-background video,
#section3 .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1) grayscale(0.3);
}

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

:root {
    --text-primary: #e6e6e6;
    --text-secondary: #808080;
    --text-dim: #404040;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --accent: #333333;
    --glow: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.05);
}

html {
    height: 100%;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #000;
    color: var(--text-primary);
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/* Sections Container */
.sections-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    position: relative;
}

.section {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Top boxes styles */
.top-boxes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    font-family: 'Share Tech Mono', monospace;
    pointer-events: none;
}

.ca-box, .twitter-box {
    pointer-events: auto;
    background: rgba(15, 15, 15, 0.9);
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ca-box {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-width: 200px;
}

.ca-box span:first-child {
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 500;
}

.ca-text {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twitter-box {
    padding: 0.8rem 2rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ca-box:hover, .twitter-box:hover {
    background: rgba(25, 25, 25, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.ca-box:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Skull styles */
.skull-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.skull {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.skull svg {
    width: 100%;
    height: 100%;
    filter: brightness(0.7) contrast(1.2);
}

.skull-path rect {
    fill: var(--text-primary);
}

.skull-socket rect {
    fill: #000000;
}

.eye rect {
    fill: #000000;
}

.teeth rect {
    fill: var(--text-primary);
}

/* Scroll container styles */
.scroll-container {
    text-align: center;
    position: absolute;
    bottom: 2rem;
}

.cryptic-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-primary), transparent);
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Matrix container styles */
.matrix-container {
    text-align: center;
}

.encrypted-message {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.cyber-text {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.message-text {
    font-size: 1.2rem;
    opacity: 0.8;
}

.binary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

/* Chat Interface Styles */
.chat-interface {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    height: 80vh;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--text-primary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chat-header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--text-primary);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.system {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--text-primary);
    color: var(--text-primary);
    align-self: center;
    max-width: 90%;
}

.message.user {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--text-primary);
    align-self: flex-end;
}

.message.bot {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--text-secondary);
    align-self: flex-start;
}

.chat-input-container {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--text-primary);
    display: flex;
    gap: 1rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--text-primary);
    border-radius: 4px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.send-button {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: var(--text-primary);
    color: var(--bg-darker);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Sections Container Scrollbar */
.sections-container::-webkit-scrollbar {
    width: 8px;
}

.sections-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.sections-container::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sections-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
    border: 2px solid transparent;
    background-clip: padding-box;
}
