/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.2;
    overflow-x: hidden;
    height: 100vh;
}

/* Scroll container with snap behavior */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
    scrollbar-color: #333333 #0a0a0a;
}

/* Each word page takes full viewport */
.word-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Word content styling */
.word-content {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    max-width: 90vw;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Subtle background pattern */
.word-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Subtle animation on scroll */
.word-content {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Professional hover effect */
.word-page:hover .word-content {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.3);
    transition: text-shadow 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .word-content {
        font-size: clamp(2.5rem, 10vw, 6rem);
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .word-content {
        font-size: clamp(2rem, 8vw, 4rem);
        padding: 10px;
        letter-spacing: 0.03em;
    }
}

/* Custom scrollbar for webkit browsers */
.scroll-container::-webkit-scrollbar {
    width: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Selection styling */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Focus styles for accessibility */
.word-content:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 10px;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}