/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-bg: #f8f9ff;
    --color-primary: #ff9aa2;
    --color-secondary: #b5ead7;
    --color-accent: #ffdac1;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-white: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mouse Follower */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    animation: float 25s infinite linear;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: 8s;
    animation-direction: reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: 50%;
    left: 10%;
    animation-delay: 16s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header with Animated Logo */
.header {
    margin-bottom: 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 60px;
    height: 60px;
    animation: logoBounce 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Main Content */
.main-content {
    margin: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Column */
.left-column {
    animation: slideInLeft 1s ease;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 154, 162, 0.3);
    animation: pulse 2s infinite ease-in-out;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title span {
    display: block;
}

.highlight {
    color: var(--color-primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 154, 162, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.divider {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.5s; }
.dot:nth-child(3) { animation-delay: 1s; }

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Contact */
.contact {
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon {
    font-size: 1.5rem;
}

.contact-item a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.contact-item a:hover::after {
    width: 100%;
}

/* ============================================
   PET CARDS WITH ICONS
   ============================================ */

.pet-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pet-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px var(--color-shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 154, 162, 0.2);
}

.pet-card:hover::before {
    opacity: 1;
}

.pet-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.pet-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pet-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    transition: all 0.4s ease;
    animation: glowPulse 2s infinite ease-in-out;
}

/* Individual pet icon styles */
.dog-icon {
    background: linear-gradient(135deg, #FF9AA2, #FFB7B2);
    box-shadow: 0 8px 25px rgba(255, 154, 162, 0.3);
}

.cat-icon {
    background: linear-gradient(135deg, #B5EAD7, #C7CEEA);
    box-shadow: 0 8px 25px rgba(181, 234, 215, 0.3);
}

.small-pet-icon {
    background: linear-gradient(135deg, #FFDAC1, #E2F0CB);
    box-shadow: 0 8px 25px rgba(255, 218, 193, 0.3);
}

.aquatic-icon {
    background: linear-gradient(135deg, #A8E6CF, #C2E9FB);
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.3);
}

/* Glow colors */
.pet-card:nth-child(1) .pet-glow {
    background: #FF9AA2;
    animation-delay: 0s;
}

.pet-card:nth-child(2) .pet-glow {
    background: #B5EAD7;
    animation-delay: 0.5s;
}

.pet-card:nth-child(3) .pet-glow {
    background: #FFDAC1;
    animation-delay: 1s;
}

.pet-card:nth-child(4) .pet-glow {
    background: #A8E6CF;
    animation-delay: 1.5s;
}

.pet-card:hover .pet-icon {
    transform: scale(1.1) rotate(10deg);
}

.pet-card:hover .pet-glow {
    opacity: 0.5;
    transform: scale(1.2);
}

.pet-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.pet-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    transition: color 0.3s ease;
}

.pet-card:hover .pet-info h3 {
    color: var(--color-primary);
}

.pet-card:hover .pet-info p {
    color: var(--color-text);
}

/* Pet card hover effects */
.pet-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.pet-card:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

/* ============================================
   PET CARD ANIMATIONS
   ============================================ */

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-5px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) rotate(-5deg);
    }
}

/* Add floating animation to pet icons on hover */
.pet-card:hover .pet-icon {
    animation: iconFloat 2s infinite ease-in-out;
}

/* ============================================
   RESPONSIVE PET CARDS
   ============================================ */

@media (max-width: 768px) {
    .pet-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pet-card {
        padding: 1.5rem;
    }
    
    .pet-icon-container {
        width: 80px;
        height: 80px;
    }
    
    .pet-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .pet-info h3 {
        font-size: 1.3rem;
    }
    
    .pet-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pet-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pet-card {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
    color: var(--color-text-light);
}

.tagline {
    font-style: italic;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .content-wrapper {
        gap: 3rem;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .pet-image {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .description {
        margin: 0 auto 2rem;
    }
    
    .pet-categories {
        justify-content: center;
    }
    
    .pet-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .pet-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pet-image {
        width: 140px;
        height: 140px;
    }
}

/* ============================================
   ENHANCED 404 ERROR PAGE
   ============================================ */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.error-page .header {
    animation: slideDownError 0.8s ease;
}

.error-logo {
    animation: logoBounceError 2s infinite ease-in-out;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Background Elements */
.error-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-paw {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: floatAround 25s infinite linear;
}

.floating-paw:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-paw:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 8s;
    animation-direction: reverse;
}

.floating-paw:nth-child(3) {
    top: 40%;
    left: 20%;
    animation-delay: 16s;
}

/* Error Content */
.error-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.error-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Error Illustration */
.error-illustration {
    margin-bottom: 3rem;
}

.lost-pet-container {
    position: relative;
    height: 150px;
    margin-bottom: 2rem;
}

.lost-pet {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: lostPetSearch 6s infinite ease-in-out;
}

.pet-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(255, 154, 162, 0.3);
}

.confused-expression {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: expressionChange 4s infinite ease-in-out;
    z-index: 3;
}

.search-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transform-origin: left center;
    animation: searchBeam 3s infinite ease-in-out;
    opacity: 0.5;
}

/* Error Number Display */
.error-number-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.error-digit {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-text);
    opacity: 0.1;
    animation: errorDigitPulse 3s infinite ease-in-out;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.error-digit:nth-child(1) { animation-delay: 0s; }
.error-digit:nth-child(3) { animation-delay: 1s; }
.error-digit:nth-child(5) { animation-delay: 2s; }

.paw-separator {
    position: relative;
    width: 60px;
    height: 60px;
}

.paw-spin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: pawSpin 4s infinite linear;
    box-shadow: 0 5px 15px rgba(255, 154, 162, 0.3);
}

/* Error Message */
.error-message-container {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px var(--color-shadow);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.error-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.title-word {
    display: block;
    opacity: 0;
    animation: slideUpWord 0.6s ease forwards;
}

.title-word:nth-child(1) { animation-delay: 0.5s; }
.title-word:nth-child(2) { animation-delay: 0.7s; }

.error-divider {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: dotBounce 1.5s infinite ease-in-out;
}

.divider-dot:nth-child(2) { animation-delay: 0.3s; }
.divider-dot:nth-child(3) { animation-delay: 0.6s; }

.error-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Error Actions */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.primary-action, .secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-action {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    box-shadow: 0 5px 20px rgba(255, 154, 162, 0.3);
}

.secondary-action {
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    box-shadow: 0 5px 15px var(--color-shadow);
}

.primary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 154, 162, 0.4);
}

.secondary-action:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.primary-action i, .secondary-action i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.primary-action:hover i {
    transform: translateX(3px);
}

.secondary-action:hover i {
    transform: translateX(3px);
}

/* Redirect Notice */
.redirect-notice {
    background: rgba(255, 154, 162, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease 1s forwards;
    opacity: 0;
}

.redirect-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.redirect-content i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.redirect-content p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
}

.redirect-content span {
    font-weight: 700;
    color: var(--color-primary);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 154, 162, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 3px;
    animation: progressShrink 10s linear forwards;
}

/* Pet Fun Section */
.pet-fun-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.fun-card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fun-card:nth-child(1) { animation-delay: 0.8s; }
.fun-card:nth-child(2) { animation-delay: 1s; }

.fun-card:hover {
    transform: translateY(-5px);
}

.fun-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fun-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.fun-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Pet Parade */
.pet-parade {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.parade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: floatParade 3s infinite ease-in-out;
}

.parade-item:nth-child(1) { animation-delay: 0s; }
.parade-item:nth-child(2) { animation-delay: 0.5s; }
.parade-item:nth-child(3) { animation-delay: 1s; }
.parade-item:nth-child(4) { animation-delay: 1.5s; }

.parade-emoji {
    font-size: 2rem;
    animation: bounce 2s infinite ease-in-out;
}

.parade-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Error Footer */
.error-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-paws {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-paws span {
    opacity: 0.3;
    animation: pawTwinkle 3s infinite ease-in-out;
}

.footer-paws span:nth-child(2) { animation-delay: 1s; }
.footer-paws span:nth-child(3) { animation-delay: 2s; }

/* ============================================
   ERROR PAGE ANIMATIONS
   ============================================ */

@keyframes slideDownError {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoBounceError {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(40px, 0) rotate(180deg);
    }
    75% {
        transform: translate(20px, 20px) rotate(270deg);
    }
}

@keyframes lostPetSearch {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    25% {
        transform: translate(-60%, -50%);
    }
    50% {
        transform: translate(-50%, -40%);
    }
    75% {
        transform: translate(-40%, -50%);
    }
}

@keyframes expressionChange {
    0%, 100% {
        content: '😕';
    }
    50% {
        content: '🤔';
    }
}

@keyframes searchBeam {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes errorDigitPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

@keyframes pawSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes slideUpWord {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes progressShrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@keyframes floatParade {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pawTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE 404
   ============================================ */

@media (max-width: 768px) {
    .error-digit {
        font-size: 4rem;
    }
    
    .paw-separator {
        width: 40px;
        height: 40px;
    }
    
    .paw-spin {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .pet-fun-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pet-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-action, .secondary-action {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-digit {
        font-size: 3rem;
    }
    
    .error-number-display {
        gap: 0.5rem;
    }
    
    .error-title {
        font-size: 1.75rem;
    }
    
    .error-message-container {
        padding: 1.5rem;
    }
    
    .pet-parade {
        gap: 1rem;
    }
    
    .parade-emoji {
        font-size: 1.5rem;
    }
}