/* Reset and Basic Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@300;400;500;600&family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page {
    display: none;
    padding-top: 100px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Reading Highlight Styles */
.reading-highlight {
    position: relative;
    transition: all 0.5s ease !important;
    z-index: 5 !important;
}

.reading-highlight::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #667eea, #764ba2, #4ECDC4, #FF6B6B);
    border-radius: 30px;
    z-index: -1;
    animation: gentlePulse 3s ease-in-out infinite;
    opacity: 0.3;
}

.reading-highlight::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 26px;
    z-index: -1;
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.01);
    }
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

@keyframes colorShift {
    0%, 100% { 
        background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 25%, #667eea 50%, #764ba2 75%, #FF6B6B 100%);
    }
    50% { 
        background: linear-gradient(90deg, #4ECDC4 0%, #667eea 25%, #764ba2 50%, #FF6B6B 75%, #4ECDC4 100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}