/* PDF Not Available Page CSS for Omkar Kumar Sharma's Portfolio
   Created: July 10, 2025
   Customized styling for the PDF not available page
*/

/* Global Smooth Scrolling and Performance Optimizations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* PDF Animation */
.pdf-animation {
    position: relative;
    height: 250px;
    margin: 2rem auto;
    width: 100%;
    max-width: 500px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Flying papers animation */
.flying-papers {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.flying-papers i {
    position: absolute;
    font-size: 4rem;
    color: #2c5aa0;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    transition: all 0.3s ease;
}

.flying-papers i:hover {
    animation-play-state: paused;
    transform: translate3d(0, 0, 0) scale(1.1);
    color: #3498db;
}

.paper-1 {
    top: 20%;
    left: 10%;
    animation-name: flyAway1;
    animation-delay: 0.5s;
    transform: rotate(-15deg);
}

.paper-2 {
    top: 10%;
    left: 40%;
    animation-name: flyAway2;
    animation-delay: 0s;
    transform: rotate(10deg);
}

.paper-3 {
    top: 30%;
    right: 10%;
    animation-name: flyAway3;
    animation-delay: 1s;
    transform: rotate(20deg);
}

@keyframes flyAway1 {
    0% { 
        transform: translate3d(0, 0, 0) rotate(-15deg); 
        opacity: 0; 
    }
    20% { 
        opacity: 1; 
        transform: translate3d(10px, -10px, 0) rotate(-15deg);
    }
    100% { 
        transform: translate3d(-100px, -100px, 0) rotate(-45deg); 
        opacity: 0; 
    }
}

@keyframes flyAway2 {
    0% { 
        transform: translate3d(0, 0, 0) rotate(10deg); 
        opacity: 0; 
    }
    20% { 
        opacity: 1; 
        transform: translate3d(-5px, -15px, 0) rotate(10deg);
    }
    100% { 
        transform: translate3d(0, -150px, 0) rotate(40deg); 
        opacity: 0; 
    }
}

@keyframes flyAway3 {
    0% { 
        transform: translate3d(0, 0, 0) rotate(20deg); 
        opacity: 0; 
    }
    20% { 
        opacity: 1; 
        transform: translate3d(15px, -5px, 0) rotate(20deg);
    }
    100% { 
        transform: translate3d(100px, -120px, 0) rotate(60deg); 
        opacity: 0; 
    }
}

/* Magnifying glass */
.magnifying-glass {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    color: #34495e;
    animation: searchMotion 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
    cursor: pointer;
    transition: all 0.3s ease;
}

.magnifying-glass:hover {
    color: #2c5aa0;
    transform: translateX(-50%) scale(1.1);
    animation-play-state: paused;
}

@keyframes searchMotion {
    0% { 
        transform: translateX(-50%) translate3d(0, 0, 0) rotate(0deg); 
    }
    25% { 
        transform: translateX(-50%) translate3d(-30px, 0, 0) rotate(-15deg); 
    }
    50% { 
        transform: translateX(-50%) translate3d(30px, 0, 0) rotate(15deg); 
    }
    75% { 
        transform: translateX(-50%) translate3d(-15px, 0, 0) rotate(-8deg); 
    }
    100% { 
        transform: translateX(-50%) translate3d(0, 0, 0) rotate(0deg); 
    }
}

/* Override some 404 styles for PDF not available page */
.error-number {
    font-size: 10rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 0;
}

.error-title {
    font-size: 3.5rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.error-description {
    font-size: 1.5rem;
    color: #7f8c8d;
    max-width: 80%;
    margin: 0 auto 2rem;
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); }
    to { text-shadow: 2px 2px 20px rgba(225, 112, 85, 0.4); }
}

/* Funny Quotes Section */
.funny-quotes {
    margin: 2rem 0;
}

.quote-bubble {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 20px;
    padding: 1.5rem;
    border-left: 5px solid #e17055;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    max-width: 600px;
    position: relative;
    animation: quoteFloat 4s ease-in-out infinite;
}

.quote-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #fff3cd;
}

.quote-text {
    font-size: 1.2rem;
    color: #d35400;
    font-style: italic;
    display: block;
    margin-bottom: 0.5rem;
}

.quote-author {
    color: #e17055;
    font-weight: 500;
}

@keyframes quoteFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Quote change indicator */
.quote-bubble.updating {
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}

/* Detective Speech Bubble */
.detective-speech {
    position: absolute;
    top: -60px;
    left: 10%;
    z-index: 10;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.detective-speech .speech-bubble {
    background: #74b9ff;
    color: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(116, 185, 255, 0.3);
    font-size: 0.9rem;
    position: relative;
    animation: detectiveSpeech 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detective-speech .speech-bubble:hover {
    background: #0984e3;
    box-shadow: 0 8px 30px rgba(116, 185, 255, 0.5);
    transform: translate3d(0, -3px, 0) scale(1.05);
}

.detective-speech .speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #74b9ff;
    transition: border-top-color 0.3s ease;
}

.detective-speech .speech-bubble:hover::after {
    border-top-color: #0984e3;
}

@keyframes detectiveSpeech {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1); 
    }
    50% { 
        transform: translate3d(0, -5px, 0) scale(1.02); 
    }
}

/* Missing Poster */
.missing-poster {
    position: absolute;
    top: 10%;
    right: 5%;
    z-index: 10;
    animation: posterSway 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
    cursor: pointer;
    transition: all 0.3s ease;
}

.missing-poster:hover {
    animation-play-state: paused;
    transform: translate3d(0, -5px, 0) rotate(-3deg) scale(1.05);
}

.poster-content {
    background: #ffeaa7;
    border: 3px dashed #e17055;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: bold;
    color: #d35400;
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.missing-poster:hover .poster-content {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #d63031;
}

.poster-content h6 {
    margin-bottom: 0.5rem;
    color: #e17055;
    font-size: 0.8rem;
}

@keyframes posterSway {
    0%, 100% { 
        transform: translate3d(0, 0, 0) rotate(-5deg); 
    }
    25% { 
        transform: translate3d(5px, -2px, 0) rotate(-3deg); 
    }
    50% { 
        transform: translate3d(-3px, 0, 0) rotate(-7deg); 
    }
    75% { 
        transform: translate3d(2px, -1px, 0) rotate(-4deg); 
    }
}

/* Pulse Button Animation */
.pulse-btn {
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 112, 85, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(225, 112, 85, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 112, 85, 0); }
}

/* Case Status Badge */
.case-status {
    animation: caseStatusBlink 2s infinite;
}

@keyframes caseStatusBlink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.8; }
}

/* Suggestion links styling */
.suggestion-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.suggestion-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #34495e;
    transition: all 0.3s ease;
    width: 200px;
    padding: 1.5rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.7), rgba(255, 255, 255, 0.9));
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.suggestion-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 112, 85, 0.1), transparent);
    transition: left 0.5s;
}

.suggestion-link:hover::before {
    left: 100%;
}

.suggestion-link:hover {
    transform: translateY(-10px) scale(1.05);
    color: #e17055;
    background: linear-gradient(135deg, rgba(225, 112, 85, 0.1), rgba(255, 255, 255, 1));
    border-color: #e17055;
    box-shadow: 0 15px 40px rgba(225, 112, 85, 0.2);
}

.suggestion-link i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.suggestion-link:hover i {
    transform: scale(1.2) rotate(10deg);
}

.suggestion-link span {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.suggestion-link small {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-align: center;
}

/* Investigation Timeline */
.investigation-timeline {
    background: linear-gradient(135deg, #ffeaa7, #fff3cd);
    border-radius: 15px;
    padding: 2rem;
    border: 2px dashed #e17055;
}

.timeline-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: #e17055;
}

.timeline-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #e17055;
    line-height: 1;
    animation: timelineCount 3s ease-out;
}

.timeline-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

@keyframes timelineCount {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Evidence Markers */
.evidence-markers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.evidence-item {
    position: absolute;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: evidencePulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    user-select: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.evidence-item:hover {
    transform: translate3d(0, -3px, 0) scale(1.3);
    animation-play-state: paused;
    filter: drop-shadow(0 5px 15px rgba(225, 112, 85, 0.8));
}

.evidence-item.collected {
    opacity: 0.3;
    transform: scale(0.8);
    pointer-events: none;
}

.evidence-1 { top: 15%; left: 20%; animation-delay: 0s; }
.evidence-2 { top: 25%; right: 15%; animation-delay: 0.5s; }
.evidence-3 { bottom: 30%; left: 25%; animation-delay: 1s; }
.evidence-4 { bottom: 20%; right: 25%; animation-delay: 1.5s; }

@keyframes evidencePulse {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1.2); 
        opacity: 0.7; 
    }
    50% { 
        transform: translate3d(0, -2px, 0) scale(1.4); 
        opacity: 0.9; 
    }
}

/* Search Beams */
.search-beams {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.beam {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(74, 144, 226, 0.3), transparent);
    animation: searchSweep 4s linear infinite;
}

.beam-1 { left: 20%; animation-delay: 0s; }
.beam-2 { left: 50%; animation-delay: 1.3s; }
.beam-3 { left: 80%; animation-delay: 2.6s; }

@keyframes searchSweep {
    0% { transform: translateX(-100px) scaleY(0); opacity: 0; }
    20% { transform: translateX(0) scaleY(1); opacity: 1; }
    80% { transform: translateX(100px) scaleY(1); opacity: 1; }
    100% { transform: translateX(200px) scaleY(0); opacity: 0; }
}

/* Detective Game */
.detective-game {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #e17055;
}

.game-status .progress {
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.progress-text {
    line-height: 25px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.clues-found {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.clue-badge {
    background: #e17055;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    animation: clueAppear 0.5s ease-out;
}

@keyframes clueAppear {
    from { transform: scale(0) rotate(180deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Witness Testimonies */
.witness-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.testimonies-carousel {
    position: relative;
    min-height: 150px;
    overflow: hidden;
}

.testimony-card {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translate3d(100%, 0, 0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.testimony-card.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.testimony-card.prev {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.witness-avatar {
    font-size: 3rem;
    background: linear-gradient(135deg, #ffeaa7, #fff3cd);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.testimony-card:hover .witness-avatar {
    transform: translate3d(0, -3px, 0) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.witness-info h6 {
    color: #e17055;
    margin-bottom: 0.25rem;
}

.witness-info small {
    color: #7f8c8d;
    font-style: italic;
}

.witness-info p {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #34495e;
}

.testimony-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimony-counter {
    color: #7f8c8d;
    font-weight: bold;
}

/* PDF Simulator */
.pdf-simulator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.simulator-screen {
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    border: 3px solid #ddd;
}

.loading-pdf {
    animation: fadeIn 0.5s ease-in;
}

.fake-pdf {
    animation: slideInUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pdf-header {
    animation: headerGlow 2s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    from { box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); }
    to { box-shadow: 0 0 20px rgba(220, 53, 69, 0.8); }
}

/* Enhanced animations for PDF simulator */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved quote animation with smooth transitions */
.quote-text, .quote-author {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Enhanced PDF content styling */
.pdf-footer {
    animation: fadeInUp 1s ease-out 2.5s both;
    opacity: 0;
}

/* Smoother case status transitions */
.case-status .badge {
    transition: all 0.5s ease-in-out;
}

/* Enhanced PDF header typewriter effect */
.pdf-header {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #dc3545;
    transition: opacity 0.3s ease-in-out;
}

.pdf-header.typing {
    animation: typewriter 2s steps(20, end), blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #dc3545; }
}

/* Additional hover effects for better interactivity */
.simulator-screen:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.testimony-card {
    transition: all 0.3s ease;
}

.testimony-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Enhanced loading animation for PDF simulator */
.simulator-screen .spinner-border {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .error-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .error-title {
        font-size: 2.8rem;
    }
    
    .pdf-animation {
        height: 220px;
        max-width: 450px;
    }
    
    .suggestion-links {
        gap: 1.2rem;
    }
    
    .suggestion-link {
        width: 180px;
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .error-section {
        padding: 100px 0 60px;
    }
    
    .error-content {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .error-number {
        font-size: 8rem;
        margin-bottom: 1rem;
    }
    
    .error-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .error-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .quote-bubble {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 15px;
    }
    
    .quote-text {
        font-size: 0.95rem;
    }
    
    .pdf-animation {
        height: 180px;
        margin: 1.5rem auto;
        overflow: hidden;
        position: relative;
    }
    
    /* Evidence markers mobile optimization */
    .evidence-item {
        font-size: 2rem;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .evidence-1 { top: 20%; left: 15%; }
    .evidence-2 { top: 30%; right: 10%; }
    .evidence-3 { bottom: 35%; left: 20%; }
    .evidence-4 { bottom: 25%; right: 20%; }
    
    /* Testimonies mobile optimization */
    .testimonies-carousel {
        padding: 0 10px;
        margin: 0 -10px;
    }
    
    .testimony-card {
        padding: 1.2rem;
        margin: 0 5px;
        flex-direction: column;
        text-align: center;
    }
    
    .witness-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .testimony-controls .btn {
        padding: 0.6rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* PDF Simulator mobile optimization */
    .pdf-simulator {
        margin: 2rem -1rem 0;
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .simulator-screen {
        min-height: 250px;
        margin-bottom: 1rem;
    }
    
    .simulator-controls {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .simulator-controls .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Detective game mobile optimization */
    .detective-game {
        margin: 2rem -1rem 0;
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .game-status {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .evidence-counter {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .progress {
        width: 100%;
    }
    
    .suggestion-link {
        width: 140px;
        padding: 1rem;
    }
    
    .suggestion-link i {
        font-size: 2rem;
    }
    
    .detective-speech {
        left: 2%;
        top: -45px;
    }
    
    .detective-speech .speech-bubble {
        font-size: 0.8rem;
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    .missing-poster {
        right: 2%;
        top: 5%;
    }
    
    .poster-content {
        padding: 0.7rem;
        font-size: 0.75rem;
    }
    
    .poster-content h6 {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .timeline-number {
        font-size: 1.1rem;
    }
    
    .timeline-label {
        font-size: 0.8rem;
    }
    
    .investigation-timeline {
        padding: 1.5rem 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .error-section {
        padding: 90px 0 50px;
    }
    
    .error-content {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .error-number {
        font-size: 6rem;
        letter-spacing: -2px;
    }
    
    .error-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .error-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .quote-bubble {
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    .quote-text {
        font-size: 0.85rem;
    }
    
    .quote-author {
        font-size: 0.75rem;
    }
    
    .pdf-animation {
        height: 150px;
        margin: 1rem auto;
    }
    
    .suggestion-links {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-link {
        width: 100%;
        max-width: 250px;
        padding: 1rem;
        margin: 0;
    }
    
    .suggestion-link i {
        font-size: 1.8rem;
    }
    
    .detective-speech {
        left: 5%;
        top: -35px;
    }
    
    .detective-speech .speech-bubble {
        font-size: 0.7rem;
        padding: 0.6rem;
        max-width: 150px;
    }
    
    .missing-poster {
        right: 5%;
        top: 2%;
        transform: scale(0.8);
    }
    
    .poster-content {
        padding: 0.5rem;
        font-size: 0.65rem;
    }
    
    .poster-content h6 {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .timeline-number {
        font-size: 0.9rem;
    }
    
    .timeline-label {
        font-size: 0.7rem;
    }
    
    .investigation-timeline {
        padding: 1rem 0.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 !important;
    }
}

@media (max-width: 400px) {
    .error-content {
        padding: 0.8rem;
    }
    
    .error-number {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 0.8rem;
    }
    
    .quote-bubble {
        padding: 0.6rem;
    }
    
    .quote-text {
        font-size: 0.8rem;
    }
    
    .pdf-animation {
        height: 120px;
    }
    
    .detective-speech .speech-bubble {
        font-size: 0.65rem;
        padding: 0.5rem;
        max-width: 120px;
    }
    
    .missing-poster {
        transform: scale(0.7);
    }
    
    .timeline-card {
        padding: 0.6rem 0.4rem;
    }
    
    .timeline-number {
        font-size: 0.8rem;
    }
    
    .timeline-label {
        font-size: 0.65rem;
    }
    
    .investigation-timeline .row {
        gap: 0.5rem;
    }
    
    .error-actions .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .suggestion-link:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .timeline-card:hover {
        transform: translateY(-3px);
    }
    
    .btn:hover {
        transform: scale(1.02);
    }
    
    /* Larger touch targets */
    .suggestion-link {
        min-height: 120px;
        padding: 1.2rem;
    }
    
    .timeline-card {
        min-height: 80px;
        padding: 1rem;
    }
    
    .btn {
        min-height: 48px;
        padding: 0.8rem 1.5rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .error-section {
        padding: 80px 0 40px;
    }
    
    .error-content {
        padding: 1rem;
    }
    
    .error-number {
        font-size: 5rem;
        margin-bottom: 0.5rem;
    }
    
    .error-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .error-description {
        margin-bottom: 1rem;
    }
    
    .pdf-animation {
        height: 120px;
        margin: 1rem auto;
    }
    
    .quote-bubble {
        margin: 0.5rem 0;
    }
    
    .investigation-timeline {
        padding: 1rem;
    }
    
    .detective-speech {
        top: -30px;
    }
    
    .missing-poster {
        transform: scale(0.8);
    }
}
