/* ============================================
   FEAR PAGE STYLES
   Dark/Red Theme - Horror Psychology
   ============================================ */

.fear-page {
    background: #0a0000;
    color: #fff;
}

/* Intro Overlay */
.fear-intro {
    background: #000;
}

.fear-glitch-text {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    color: #ff0000;
    text-shadow: 
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000;
    animation: fearPulse 2s ease infinite;
}

@keyframes fearPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 80px #ff0000; }
    50% { opacity: 0.8; text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 40px #ff0000; }
}

.fear-subtext {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-top: 1rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}

/* Progress Bar */
.fear-progress {
    background: linear-gradient(90deg, #660000, #ff0000, #660000);
}

/* Navigation */
.fear-nav .nav-links a.active {
    color: #ff4444;
}

.fear-nav .nav-links a.active::after {
    background: #ff4444;
}

/* Background */
.fear-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(100, 0, 0, 0.3) 0%, transparent 70%);
    animation: fogMove 30s linear infinite;
}

.fog-1 {
    top: 0;
    animation-duration: 25s;
    opacity: 0.5;
}

.fog-2 {
    top: 30%;
    animation-duration: 35s;
    animation-direction: reverse;
    opacity: 0.3;
}

.fog-3 {
    top: 60%;
    animation-duration: 40s;
    opacity: 0.4;
}

@keyframes fogMove {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

#fearCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Section */
.fear-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(ellipse at center, rgba(50, 0, 0, 0.5) 0%, transparent 70%);
}

.fear-icon {
    font-size: 5rem;
    color: #ff4444;
    margin-bottom: 2rem;
    animation: ghostFloat 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
}

@keyframes ghostFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.fear-hero .hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 1rem;
    color: #ff0000;
    text-shadow: 
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000;
    margin-bottom: 1.5rem;
}

.fear-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    max-width: 500px;
    text-align: center;
    margin-bottom: 2rem;
}

.fear-quote {
    text-align: center;
    padding: 2rem;
    border-left: 3px solid #ff4444;
    background: rgba(255, 0, 0, 0.05);
}

.fear-quote span {
    font-size: 1.5rem;
    font-style: italic;
    display: block;
    margin-bottom: 0.5rem;
}

.fear-quote cite {
    font-size: 0.9rem;
    opacity: 0.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator i {
    animation: bounce 1.5s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Explanation Section */
.explanation-section {
    padding: 8rem 2rem;
}

.explanation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.explanation-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.fear-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #ff4444;
    border-radius: 0 0.5rem 0.5rem 0;
}

.fact-item i {
    color: #ff4444;
    font-size: 1.25rem;
}

/* Brain Fear Map */
.brain-fear-map {
    position: relative;
    width: 300px;
    height: 350px;
    margin: 0 auto;
}

.brain-outline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12rem;
    color: rgba(255, 68, 68, 0.2);
}

.fear-region {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.region-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.region-pulse {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4444;
    animation: regionPulse 1.5s ease infinite;
}

.amygdala {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.hippocampus {
    top: 50%;
    left: 20%;
}

.hypothalamus {
    top: 50%;
    right: 20%;
}

@keyframes regionPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Experiment Section */
.experiment-section {
    padding: 8rem 2rem;
}

.experiment-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.experiment-area {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 1rem;
    padding: 3rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experiment-area:hover {
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.2);
}

.experiment-area.triggered {
    background: rgba(255, 0, 0, 0.2);
    animation: fearFlash 0.3s ease;
}

@keyframes fearFlash {
    0%, 100% { background: rgba(0, 0, 0, 0.5); }
    50% { background: rgba(255, 0, 0, 0.4); }
}

.experiment-instruction {
    text-align: center;
}

.experiment-instruction i {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 1rem;
}

.fear-response-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

.response-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.response-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4444, #ff0000);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.response-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.experiment-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ff4444;
}

.response-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    background: rgba(255, 0, 0, 0.15);
    border-left: 3px solid #ff4444;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    padding: 6rem 2rem;
}

.fear-page .stat-item {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.fear-page .stat-number {
    color: #ff4444;
}

/* Case Study */
.case-study-section {
    padding: 8rem 2rem;
}

.fear-case {
    background: rgba(255, 0, 0, 0.03);
    border: 1px solid rgba(255, 68, 68, 0.15);
}

.case-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.case-lessons {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
}

.case-lessons h4 {
    color: #ff4444;
    margin-bottom: 1rem;
}

.case-lessons ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-lessons li::before {
    content: '→';
    color: #ff4444;
    margin-right: 0.5rem;
}

/* Experiment Visualization */
.experiment-visualization {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.rat-icon, .noise-wave, .fear-result {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.rat-icon {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.noise-wave {
    bottom: 20%;
    left: 0;
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid rgba(255, 68, 68, 0.5);
    animation: noisePulse 1s ease infinite;
}

@keyframes noisePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fear-result {
    bottom: 20%;
    right: 0;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
}

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

.line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    opacity: 0.5;
}

.line-1 {
    top: 35%;
    left: 15%;
    width: 70%;
    transform: rotate(30deg);
}

.line-2 {
    top: 35%;
    right: 15%;
    width: 70%;
    transform: rotate(-30deg);
}

/* Challenge Section */
.challenge-section {
    padding: 8rem 2rem;
}

.challenge-simulator {
    max-width: 800px;
    margin: 4rem auto 0;
}

.fear-levels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.fear-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fear-level.active {
    opacity: 1;
    background: rgba(255, 68, 68, 0.2);
}

.fear-level.completed {
    opacity: 0.7;
    background: rgba(68, 255, 68, 0.1);
}

.level-num {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.fear-level.active .level-num {
    background: #ff4444;
}

.level-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenge-display {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.challenge-content i {
    font-size: 4rem;
    color: #ff4444;
    margin-bottom: 1rem;
    display: block;
}

.challenge-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.challenge-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff4444 0%, #ff0000 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.challenge-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.breathing-exercise {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    text-align: center;
}

.breathing-exercise h4 {
    color: #44ff88;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.breath-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

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

.breath-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(68, 255, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #44ff88;
}

/* Concepts Section */
.concepts-section {
    padding: 8rem 2rem;
}

.fear-page .concept-card {
    background: rgba(255, 0, 0, 0.03);
    border: 1px solid rgba(255, 68, 68, 0.15);
}

.fear-page .concept-card:hover {
    border-color: rgba(255, 68, 68, 0.4);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
}

.fear-page .concept-card h3 {
    color: #ff4444;
}

/* CTA Section */
.fear-cta-section {
    position: relative;
    background: linear-gradient(180deg, #0a0000 0%, #000000 100%);
}

.cta-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(100, 0, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.fear-cta-section .cta-title {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 68, 68, 0.5);
}

.cta-secondary::before {
    background: rgba(255, 68, 68, 0.1);
}

.cta-secondary:hover {
    color: #ff4444;
}

/* Footer */
.fear-footer {
    border-top: 1px solid rgba(255, 68, 68, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .explanation-grid,
    .experiment-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .brain-fear-map {
        width: 250px;
        height: 300px;
    }
    
    .brain-outline {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .fear-levels {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .fear-level {
        flex: 1 1 40%;
    }
    
    .breath-steps {
        gap: 1rem;
    }
    
    .breath-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
