/* ====== 404 PAGE SPECIFIC STYLES ====== */
.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: calc(100vh - 300px);
    padding: 4rem 0;
    background: var(--gradient-light);
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

/* 404 Number Animation */
.error-number {
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    animation: float-number 4s ease-in-out infinite;
    text-shadow: 0 10px 20px rgba(0, 102, 204, 0.15);
}

@keyframes float-number {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    75% { 
        transform: translateY(5px) rotate(-1deg); 
    }
}

.error-number:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.error-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--dark-secondary);
}

/* Animated Search Bar */
.search-container {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-bar {
    display: flex;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* Quick Links Grid */
.quick-links {
    margin-top: 3rem;
}

.quick-links h3 {
    margin-bottom: 2rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.link-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    text-align: left;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.link-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.link-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.link-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--dark-secondary);
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    animation: float-element 15s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 15%;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 5%;
    animation-delay: -15s;
}

@keyframes float-element {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .error-number {
        font-size: 10rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .error-number {
        font-size: 8rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .error-section {
        padding: 3rem 0;
    }
    
    .error-content {
        padding: 2rem 1rem;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 1.75rem;
    }
    
    .error-description {
        font-size: 1.1rem;
    }
}