/* CSS Variables for Dark Minimalist Theme */
:root {
    --primary-bg: #0D0D0D;
    --text-primary: #EAE7DC;
    --text-secondary: rgba(234, 231, 220, 0.7);
    --accent-primary: #9BAF87;
    --accent-secondary: #6F8A6D;
    --card-bg: rgba(234, 231, 220, 0.03);
    --border-color: rgba(234, 231, 220, 0.1);
    --hover-bg: rgba(234, 231, 220, 0.08);
    --error-color: #E74C3C;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --glow-color: rgba(155, 175, 135, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    position: relative;
}

/* Animated Background for All Pages */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(155, 175, 135, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(111, 138, 109, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(155, 175, 135, 0.07) 0%, transparent 60%);
    animation: backgroundDrift 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Cross gradient effect - ONLY for home page */
.home-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(155, 175, 135, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(111, 138, 109, 0.025) 50%, transparent 52%);
    animation: subtleShift 40s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Home Page Styles */
.home-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Intro Sequence Animation */
.intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
    cursor: pointer;
}

.skip-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: subtlePulse 2s ease-in-out infinite;
    pointer-events: none;
}

.skip-indicator.visible {
    opacity: 0.7;
}

.skip-indicator:hover {
    opacity: 1;
    color: var(--accent-primary);
}

.intro-sequence.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 2001;
}

.cogito-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 1.5s ease-out 0.5s forwards;
}

.therefore-text {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.therefore-i {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: typeWriter 2s ease-out 2.5s forwards;
}

.verb-panel {
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 2rem;
    opacity: 0;
    transform: translateX(100px);
    animation: slideInFromRight 1s ease-out 4.5s forwards;
    position: relative;
    overflow: hidden;
}

.sliding-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    animation: slideBarIn 2s ease-out 5.5s forwards;
}

@keyframes slideBarIn {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

.rotating-verb {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-block;
}

/* Background Elements */
.geometric-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.geometric-form {
    position: absolute;
    border: 2px solid rgba(155, 175, 135, 0.25);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(155, 175, 135, 0.15);
}

.form-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 15%;
    animation-delay: -2s;
}

.form-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: -4s;
}

.form-3 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 70%;
    animation-delay: -6s;
}

.form-4 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 85%;
    animation-delay: -3s;
}

.form-5 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 60%;
    animation-delay: -7s;
}

.radial-glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 175, 135, 0.25) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(155, 175, 135, 0.2);
}

.glow-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: -1s;
}

.glow-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 10%;
    animation-delay: -3s;
}

.glow-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

/* Persistent Tagline */
.persistent-tagline {
    display: none;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background: rgba(155, 175, 135, 0.05);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.persistent-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

.tagline-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tagline-cogito {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tagline-therefore {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.tagline-verb {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    backdrop-filter: blur(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(155, 175, 135, 0.1);
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

/* Dashboard Styles */
.dashboard {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Enhanced Background Animation for Homepage */
.dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(155, 175, 135, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(111, 138, 109, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(155, 175, 135, 0.06) 0%, transparent 50%);
    animation: backgroundFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.dashboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(155, 175, 135, 0.04) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(111, 138, 109, 0.03) 50%, transparent 60%);
    animation: diagonalShift 35s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
}

.dashboard.visible {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-section {
    text-align: center;
    padding: 8rem 0 6rem;
    margin-top: 4rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    box-shadow: 0 8px 25px rgba(155, 175, 135, 0.3), 0 0 0 1px rgba(155, 175, 135, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(155, 175, 135, 0.5), 0 0 0 2px rgba(155, 175, 135, 0.3);
}

.cta-button.secondary {
    background: rgba(155, 175, 135, 0.05);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(155, 175, 135, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(155, 175, 135, 0.4), 0 0 0 2px rgba(155, 175, 135, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(13, 13, 13, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    background: rgba(13, 13, 13, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(155, 175, 135, 0.15), 0 0 0 1px var(--glow-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--accent-secondary);
}

/* Mission Section */
.mission-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.6;
}

.mission-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.mission-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.bias-detector-page {
    padding: 6rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(13, 13, 13, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bias Detector Styles */
.detector-container {
    max-width: 1000px;
    margin: 0 auto;
}

.input-section {
    margin-bottom: 2rem;
    background: rgba(13, 13, 13, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.url-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(13, 13, 13, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.url-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(13, 13, 13, 0.6);
    box-shadow: 0 0 0 3px rgba(155, 175, 135, 0.1);
}

.analyze-button {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(155, 175, 135, 0.3), 0 0 0 1px rgba(155, 175, 135, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.analyze-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.analyze-button:hover::before {
    left: 100%;
}

.analyze-button:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(155, 175, 135, 0.5), 0 0 0 2px rgba(155, 175, 135, 0.3);
}

.analyze-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.input-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Results Card */
.results-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.results-header h3 {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-primary);
}

.confidence-indicator {
    color: var(--text-secondary);
}

/* Bias Visualization */
.bias-visualization {
    margin-bottom: 2rem;
    background: rgba(13, 13, 13, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.bias-scale {
    margin-bottom: 1rem;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.scale-bar {
    height: 8px;
    background: linear-gradient(to right, #3498DB, #FFFFFF, #E74C3C);
    border-radius: 4px;
    position: relative;
    margin-bottom: 0.5rem;
}

.scale-indicator {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 50%;
    border: 2px solid var(--primary-bg);
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.scale-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bias-label {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 1rem;
}

/* Analysis Details */
.analysis-details h4,
.article-info h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.analysis-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    background: rgba(13, 13, 13, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
}

/* Glamorous Analysis Styling */
.analysis-header {
    background: linear-gradient(135deg, rgba(155, 175, 135, 0.1), rgba(111, 138, 109, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.analysis-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    text-align: center;
}

.bias-summary {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.confidence-highlight {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2rem;
}

.influential-chunks {
    background: rgba(13, 13, 13, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.influential-chunks h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    text-align: center;
}

.chunk-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chunk-item {
    display: flex;
    gap: 1rem;
    background: rgba(13, 13, 13, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chunk-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 0 3px 3px 0;
}

.chunk-item:hover {
    background: rgba(13, 13, 13, 0.5);
    transform: translateX(8px);
    box-shadow: 0 12px 35px rgba(155, 175, 135, 0.2);
}

.chunk-number {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(155, 175, 135, 0.4);
}

.chunk-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.confidence-badge {
    background: rgba(155, 175, 135, 0.15);
    color: var(--accent-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    align-self: flex-start;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 4px 15px rgba(155, 175, 135, 0.2);
}

.chunk-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    background: rgba(13, 13, 13, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--accent-primary);
}

.more-chunks {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 1rem;
    background: rgba(13, 13, 13, 0.3);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1rem;
}

.no-chunks {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(13, 13, 13, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
}

.no-chunks p {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.6;
}

.overall-stats {
    background: linear-gradient(135deg, rgba(155, 175, 135, 0.05), rgba(111, 138, 109, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.overall-stats h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background: rgba(13, 13, 13, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(13, 13, 13, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 175, 135, 0.15);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    display: block;
    color: var(--accent-primary);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.article-link-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(13, 13, 13, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: var(--accent-secondary);
}

/* Loading and Error States */
.loading-card,
.error-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.error-card i {
    font-size: 3rem;
    color: var(--error-color);
    margin-bottom: 1rem;
}

.retry-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(155, 175, 135, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.retry-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.retry-button:hover::before {
    left: 100%;
}

.retry-button:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(155, 175, 135, 0.5);
}

/* How It Works Section */
.how-it-works {
    margin-top: 6rem;
    text-align: center;
    background: rgba(13, 13, 13, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.how-it-works h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--accent-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.step {
    background: rgba(13, 13, 13, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.step:hover {
    transform: translateY(-8px);
    background: rgba(13, 13, 13, 0.5);
    box-shadow: 0 12px 40px rgba(155, 175, 135, 0.15), 0 0 0 1px var(--glow-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.5s ease;
    width: 10%;
}

.progress-text {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.question-number {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.answer-option:hover {
    background: var(--hover-bg);
    border-color: var(--accent-primary);
}

.answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-text {
    flex: 1;
    margin-left: 2.5rem;
}

.option-circle {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.answer-option input[type="radio"]:checked + .option-text + .option-circle {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.answer-option input[type="radio"]:checked + .option-text + .option-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary-bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-button {
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(155, 175, 135, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(155, 175, 135, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 175, 135, 0.1), transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover:not(:disabled) {
    background: rgba(155, 175, 135, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 175, 135, 0.2);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-button:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(155, 175, 135, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.next-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(155, 175, 135, 0.5);
}

/* Political Compass Styles */
.compass-container {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.compass-grid {
    width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.compass-quadrant {
    position: absolute;
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

.auth-left {
    top: 0;
    left: 0;
    background: rgba(231, 76, 60, 0.1);
}

.auth-right {
    top: 0;
    right: 0;
    background: rgba(52, 152, 219, 0.1);
}

.lib-left {
    bottom: 0;
    left: 0;
    background: rgba(46, 204, 113, 0.1);
}

.lib-right {
    bottom: 0;
    right: 0;
    background: rgba(155, 89, 182, 0.1);
}

.compass-center-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.center-line {
    position: absolute;
    background: var(--border-color);
}

.center-line.horizontal {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.center-line.vertical {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.compass-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border: 3px solid var(--primary-bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(155, 175, 135, 0.5);
}

.compass-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.axis-label {
    position: absolute;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.axis-label.left {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.axis-label.right {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.axis-label.top {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label.bottom {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.results-summary {
    text-align: center;
}

.results-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.score-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.score-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.retake-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.retake-button:hover {
    background: var(--accent-primary);
    color: var(--primary-bg);
}

/* Quiz Info */
.quiz-info {
    margin-top: 4rem;
    text-align: center;
}

.quiz-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.quiz-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.dimensions-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.dimension {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
}

.dimension h4 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.dimension p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* News Feed Styles */
.search-section {
    margin-bottom: 3rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.search-input {
    flex: 1;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-button {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    border: none;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(155, 175, 135, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(155, 175, 135, 0.5);
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.suggestion-tag {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: var(--accent-primary);
    color: var(--primary-bg);
    border-color: var(--accent-primary);
}

/* News Results */
.news-results {
    min-height: 400px;
}

.welcome-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.welcome-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.welcome-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    background: var(--hover-bg);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.article-content {
    padding: 1.5rem;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-source {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--primary-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    white-space: nowrap;
}

.article-bias {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.article-bias.left {
    background: rgba(52, 152, 219, 0.2);
    color: #3498DB;
}

.article-bias.center {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.article-bias.right {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
}

.article-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--accent-primary);
}

.article-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.article-date {
    opacity: 0.7;
}

.article-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: var(--accent-secondary);
}

/* Bias Legend */
.bias-legend {
    margin-top: 3rem;
    text-align: center;
}

.bias-legend h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legend-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bias-indicator {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.bias-indicator.left {
    background: #3498DB;
}

.bias-indicator.center {
    background: #FFFFFF;
}

.bias-indicator.right {
    background: #E74C3C;
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typeWriter {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: auto;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.05);
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(1.1);
    }
    75% {
        transform: translateY(-15px) rotate(270deg) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 1.2;
    }
}

@keyframes backgroundDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(20px, -30px) scale(1.05);
        opacity: 0.8;
    }
    66% {
        transform: translate(-15px, 25px) scale(0.95);
        opacity: 1;
    }
}

@keyframes subtleShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(10px, -10px) rotate(1deg);
        opacity: 0.3;
    }
}

/* Floating Particles - Home page only */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(155, 175, 135, 0.5);
    border-radius: 50%;
    animation: floatParticle 20s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(155, 175, 135, 0.6);
}

/* Circular floating particles for all other pages */
.page-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.page-particle {
    position: absolute;
    background: rgba(155, 175, 135, 0.4);
    border-radius: 50%;
    animation: floatPageParticle 25s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(155, 175, 135, 0.5);
}

.page-particle-1 {
    width: 3px;
    height: 12px;
    top: 15%;
    left: 20%;
    animation-duration: 30s;
    animation-delay: -2s;
    transform: rotate(45deg);
}

.page-particle-2 {
    width: 8px;
    height: 3px;
    top: 45%;
    left: 75%;
    animation-duration: 35s;
    animation-delay: -8s;
    transform: rotate(-30deg);
}

.page-particle-3 {
    width: 4px;
    height: 15px;
    top: 70%;
    left: 35%;
    animation-duration: 28s;
    animation-delay: -15s;
    transform: rotate(60deg);
}

.page-particle-4 {
    width: 10px;
    height: 2px;
    top: 25%;
    left: 85%;
    animation-duration: 32s;
    animation-delay: -5s;
    transform: rotate(-45deg);
}

.page-particle-5 {
    width: 2px;
    height: 18px;
    top: 80%;
    left: 65%;
    animation-duration: 40s;
    animation-delay: -12s;
    transform: rotate(75deg);
}

.page-particle-6 {
    width: 12px;
    height: 3px;
    top: 35%;
    left: 15%;
    animation-duration: 26s;
    animation-delay: -18s;
    transform: rotate(-60deg);
}

.page-particle-7 {
    width: 5px;
    height: 10px;
    top: 60%;
    left: 90%;
    animation-duration: 38s;
    animation-delay: -7s;
    transform: rotate(30deg);
}

.page-particle-8 {
    width: 3px;
    height: 14px;
    top: 10%;
    left: 55%;
    animation-duration: 33s;
    animation-delay: -20s;
    transform: rotate(-75deg);
}

.page-particle-9 {
    width: 9px;
    height: 2px;
    top: 85%;
    left: 25%;
    animation-duration: 29s;
    animation-delay: -10s;
    transform: rotate(15deg);
}

.page-particle-10 {
    width: 2px;
    height: 16px;
    top: 50%;
    left: 45%;
    animation-duration: 36s;
    animation-delay: -14s;
    transform: rotate(-15deg);
}

.page-particle-11 {
    width: 7px;
    height: 3px;
    top: 75%;
    left: 80%;
    animation-duration: 31s;
    animation-delay: -6s;
    transform: rotate(45deg);
}

.page-particle-12 {
    width: 4px;
    height: 13px;
    top: 20%;
    left: 70%;
    animation-duration: 34s;
    animation-delay: -16s;
    transform: rotate(-30deg);
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.particle-2 {
    width: 10px;
    height: 10px;
    top: 60%;
    left: 80%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    top: 40%;
    left: 60%;
    animation-duration: 35s;
    animation-delay: -15s;
}

.particle-4 {
    width: 9px;
    height: 9px;
    top: 80%;
    left: 30%;
    animation-duration: 28s;
    animation-delay: -8s;
}

.particle-5 {
    width: 8px;
    height: 8px;
    top: 30%;
    left: 90%;
    animation-duration: 32s;
    animation-delay: -12s;
}

.particle-6 {
    width: 10px;
    height: 10px;
    top: 15%;
    left: 50%;
    animation-duration: 28s;
    animation-delay: -5s;
}

.particle-7 {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 15%;
    animation-duration: 35s;
    animation-delay: -18s;
}

.particle-8 {
    width: 9px;
    height: 9px;
    top: 85%;
    left: 85%;
    animation-duration: 30s;
    animation-delay: -8s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-15px, -60px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(30px, -90px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes floatPageParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rotation, 0deg));
        opacity: 0.4;
    }
    25% {
        transform: translate(25px, -35px) rotate(calc(var(--rotation, 0deg) + 90deg));
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -70px) rotate(calc(var(--rotation, 0deg) + 180deg));
        opacity: 0.55;
    }
    75% {
        transform: translate(35px, -45px) rotate(calc(var(--rotation, 0deg) + 270deg));
        opacity: 0.8;
    }
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes diagonalShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: translate(15px, -20px) rotate(0.5deg);
        opacity: 0.8;
    }
    66% {
        transform: translate(-10px, 15px) rotate(-0.5deg);
        opacity: 1.2;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .cogito-title {
        font-size: 3rem;
    }
    
    .therefore-text {
        flex-direction: column;
        gap: 1rem;
    }
    
    .therefore-i {
        font-size: 1.8rem;
    }
    
    .rotating-verb {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .page-container {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .url-input-wrapper {
        flex-direction: column;
    }
    
    .analyze-button {
        justify-content: center;
    }
    
    .question-actions {
        flex-direction: column;
    }
    
    .compass-grid {
        width: 300px;
        height: 300px;
    }
    
    .score-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 8px;
        padding-left: 3rem;
    }
    
    .search-button {
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .dimensions-info {
        grid-template-columns: 1fr;
    }
    
    .compass-grid {
        width: 250px;
        height: 250px;
    }
    
    .axis-label.left,
    .axis-label.right {
        left: 50%;
        right: auto;
        top: -50px;
        transform: translateX(-50%);
    }
    
    .axis-label.right {
        top: auto;
        bottom: -50px;
    }
}
